Skip to content

Commit

Permalink
Don't run all of pub stable if env var not set (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Sep 6, 2024
1 parent e53db15 commit 3cd5553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'wpilibsuite' }}
if: ${{ github.repository_owner == 'wpilibsuite' }} && env.PUBLISH_STABLE == 'true'
env:
PUBLISH_STABLE: ${{ secrets.PUBLISH_STABLE }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -34,7 +36,5 @@ jobs:
- name: Push
if: env.PUBLISH_STABLE == 'true' || github.event.action == 'workflow_dispatch'
env:
PUBLISH_STABLE: ${{ secrets.PUBLISH_STABLE }}
run: |
git push origin stable

0 comments on commit 3cd5553

Please sign in to comment.