Skip to content

Commit

Permalink
Fix release workflow (#33)
Browse files Browse the repository at this point in the history
Update CI workflow to call release branch workflow
  • Loading branch information
dhurley authored Sep 6, 2022
1 parent 1646c3e commit c72810e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
6 changes: 1 addition & 5 deletions .github/workflows/release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ on:
required: true
type: boolean
default: false
workflow_run:
branches: [release-*]
workflows: [CI]
types:
- completed
workflow_call:

jobs:
update-draft:
Expand Down

0 comments on commit c72810e

Please sign in to comment.