Skip to content

Commit

Permalink
CI: fix if for update-version job
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Jan 24, 2025
1 parent 9dc4fa7 commit 8be2fdf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ env:
jobs:
update-version:
if: >
github.event_name == 'push' && github.ref == 'refs/heads/main' ||
github.event_name == 'pull_request' && contains(
github.event.pull_request.labels.*.name, 'pack'
)
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
(
github.event.workflow_run.head_branch == 'main'
||
contains(
github.event.pull_request.labels.*.name, 'pack'
)
)
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.semver-tagger.outputs.version }}
Expand Down

0 comments on commit 8be2fdf

Please sign in to comment.