diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3502c9ecb..95716b013 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,6 +76,7 @@ jobs: build-snapshot: name: Build Snapshot runs-on: ubuntu-22.04 + if: ${{ !startsWith(github.ref, 'refs/heads/release-') }} steps: - uses: actions/checkout@v3 with: @@ -111,3 +112,8 @@ jobs: name: snapshots path: build/**/*.tar.gz retention-days: 3 + trigger-release-workflow: + if: startsWith(github.ref, 'refs/heads/release-') + needs: [ lint, unit-test, component-test, performance-test ] + uses: ./.github/workflows/release-branch.yml + secrets: inherit diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 4cdf3fe63..420f887e6 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -8,11 +8,7 @@ on: required: true type: boolean default: false - workflow_run: - branches: [release-*] - workflows: [CI] - types: - - completed + workflow_call: jobs: update-draft: