Skip to content

Commit

Permalink
Merge pull request #458 from puppetlabs/MODULES-11220/main/prevent_ac…
Browse files Browse the repository at this point in the history
…tions_on_forks

(MODULES-11220) Disable nightly workflows on forks
  • Loading branch information
da-ar committed Nov 29, 2021
2 parents 8aaceff + fda1aa8 commit b851eaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moduleroot/.github/workflows/nightly.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:

jobs:
setup_matrix:
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
name: "Setup Test Matrix"
runs-on: ubuntu-20.04
outputs:
Expand Down Expand Up @@ -197,7 +198,7 @@ jobs:

<% if @configs['slack-notifications'] -%>
slack-workflow-status:
if: always()
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
name: Post Workflow Status To Slack
needs:
- Acceptance
Expand Down

0 comments on commit b851eaa

Please sign in to comment.