Skip to content
Snippets Groups Projects
Unverified Commit fda1aa8e authored by sanfrancrisko's avatar sanfrancrisko Committed by GitHub
Browse files

(MODULES-11220) Disable nightly workflows on forks

Although Github Actions are disabled on forks, a user can still manually enable them and encounter errors like that reported in [MODULES-11220](https://tickets.puppetlabs.com/browse/MODULES-11220).

This commit adds an `if` guard for the `Setup Test Matrix` and `slack-workflow-status` job and step, respectively
parent 8aaceffe
Branches
Tags
No related merge requests found
...@@ -18,6 +18,7 @@ env: ...@@ -18,6 +18,7 @@ env:
jobs: jobs:
setup_matrix: setup_matrix:
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
name: "Setup Test Matrix" name: "Setup Test Matrix"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
outputs: outputs:
...@@ -197,7 +198,7 @@ jobs: ...@@ -197,7 +198,7 @@ jobs:
<% if @configs['slack-notifications'] -%> <% if @configs['slack-notifications'] -%>
slack-workflow-status: slack-workflow-status:
if: always() if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
name: Post Workflow Status To Slack name: Post Workflow Status To Slack
needs: needs:
- Acceptance - Acceptance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment