Skip to content

Commit

Permalink
fix(github-actions-workflow): ghcr upload base_ref check (#518) (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
rti authored Nov 20, 2023
1 parent 6604203 commit 3ae6162
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,12 @@ jobs:
upload_ghcr:
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/mw-') || startsWith(github.ref, 'refs/heads/prep-mw-')

# we only upload builds to github container registry
# - from main branch builds
# - from release branch builds and
# - builds from PRs going to a release branch
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/mw-') || startsWith(github.base_ref, 'mw-')

needs:
- test
Expand Down

0 comments on commit 3ae6162

Please sign in to comment.