Skip to content

Commit

Permalink
limit github action to chapel-lang repo (#26680)
Browse files Browse the repository at this point in the history
This adds a restriction to the `publish-docs` github action so that it
only runs on `chapel-lang/chapel` and not on forks or mirrors of the
repository, where it would always fail due to missing secrets.

Tested against my own fork with and without matching repository names. 

Trivial change to solve an annoyance in an action that isn't actually
doing anything yet. Not reviewed.
  • Loading branch information
arezaii authored Feb 7, 2025
2 parents a3b4abd + 2631664 commit cb9e9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
done
publish-docs:
if: github.event_name == 'push'
if: github.event_name == 'push' && github.repository == 'chapel-lang/chapel'
runs-on: ubuntu-latest
needs: make_doc
steps:
Expand Down

0 comments on commit cb9e9f7

Please sign in to comment.