Skip to content

Commit

Permalink
CI: restrict build and publish to main branch pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
KucharczykL authored Apr 9, 2024
1 parent 63356f3 commit 0a87979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/asciidoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
validate-tables: true
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: validate
steps:
- uses: actions/checkout@v4
Expand All @@ -38,7 +39,7 @@ jobs:
retention-days: 3
publish:
runs-on: ubuntu-latest
if: ${{ success() }}
if: ${{ success() }} && github.ref == 'refs/heads/main'
needs: build
continue-on-error: true
steps:
Expand Down

0 comments on commit 0a87979

Please sign in to comment.