Skip to content

Commit

Permalink
Merge pull request #453 from ksuderman/452-tag-and-release
Browse files Browse the repository at this point in the history
Ensure that one of the dependent jobs succeeded.
  • Loading branch information
nuwang committed Feb 20, 2024
2 parents b66b2bf + 0a2fdd8 commit 1b40fda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ jobs:
needs: [ package-from-pr, package-from-manual ]
name: Create a tag and GitHub release for this version.
runs-on: ubuntu-latest
if: |
always()
&& contains(needs.*.result, 'success')
&& !contains(needs.*.result, 'failure')
steps:
- name: Tag and release
run: |
version=v$(cat galaxy/Chart.yaml | grep ^version: | awk '{print $2}')
git tag -a $version -m "Automatic release of $version"
git push origin $version
gh release create $version --generate-notes
gh release create $version --generate-notes --latest

0 comments on commit 1b40fda

Please sign in to comment.