Skip to content

Commit

Permalink
Update main branch references with checks for master
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Adams <github@joeadams.io>
  • Loading branch information
sysadmind committed Nov 10, 2024
1 parent b5a3e60 commit ad10551
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
!(github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-'))
&&
!(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
&&
!(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
strategy:
matrix:
thread: [ 0, 1, 2 ]
Expand All @@ -48,6 +50,8 @@ jobs:
(github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-'))
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
strategy:
matrix:
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
Expand All @@ -66,7 +70,10 @@ jobs:
name: Publish main branch artifacts
runs-on: ubuntu-latest
needs: [test_go, build_all]
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
if: |
(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
Expand Down

0 comments on commit ad10551

Please sign in to comment.