Skip to content
37 changes: 8 additions & 29 deletions .github/workflows/mr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
TAG_NAME: ${{ steps.set-output.outputs.TAG_NAME }}
steps:
- name: Checkout Tapdata Opensource
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'tapdata/tapdata'
token: ${{ secrets.TAPDATA_ENT_CICD_TOKEN }}
Expand Down Expand Up @@ -73,33 +73,12 @@ jobs:
echo "::set-output name=TAG_NAME::${TAG_NAME}"

Sync-Code-to-Office:
runs-on: ubuntu-latest
needs:
- Get-Stable-Branch
steps:
- name: Checkout Tapdata Connectors Code
uses: actions/checkout@v3
with:
repository: 'tapdata/tapdata-connectors'
ref: ${{ needs.Get-Stable-Branch.outputs.CONNECTORS_BRANCH }}
token: ${{ secrets.TAPDATA_ENT_CICD_TOKEN }}
path: tapdata-connectors
fetch-depth: 0
- name: Checkout Tapdata Application
uses: actions/checkout@v2
with:
repository: 'tapdata/tapdata-application'
ref: main
token: ${{ secrets.TAPDATA_ENT_CICD_TOKEN }}
path: tapdata-application
fetch-depth: 0
- name: Push Tapdata Connectors to Gogs
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: |
bash tapdata-application/build/upgrade.sh --upgrade-code=true --upgrade-code-path=tapdata-connectors --gogs-project-name=tapdata-connectors
needs: Get-Stable-Branch
uses: tapdata/tapdata-application/.github/workflows/sync-code-to-office.yaml@main
secrets: inherit
with:
tapdata-connectors: ${{ needs.Get-Current-Branch.outputs.branch }}
gitee-token-user: "${{ vars.GITEE_TOKEN_USER }}"

Scan-Connectors:
runs-on: ubuntu-latest
Expand All @@ -124,7 +103,7 @@ jobs:
wait_workflow: true
- name: Checkout Tapdata-Application
if: ${{ always() && steps.sonar.outcome == 'failure' }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'tapdata/tapdata-application'
ref: "main"
Expand Down