mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do not run nightly or scheduled builds on private repos
This commit is contained in:
parent
927ccc7264
commit
6050e6867e
3 changed files with 15 additions and 0 deletions
5
.github/workflows/nightly.yml
vendored
5
.github/workflows/nightly.yml
vendored
|
@ -57,6 +57,11 @@ jobs:
|
|||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
elif [ "${{ github.event.repository.private }}" = "true" ]; then
|
||||
MSG="Not running workflow because ${{ github.repository }} is a private repository"
|
||||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
MSG="Running workflow because ${{ github.repository }} is not a fork"
|
||||
echo "${MSG}"
|
||||
|
|
5
.github/workflows/scheduled.yml
vendored
5
.github/workflows/scheduled.yml
vendored
|
@ -47,6 +47,11 @@ jobs:
|
|||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
elif [ "${{ github.event.repository.private }}" = "true" ]; then
|
||||
MSG="Not running workflow because ${{ github.repository }} is a private repository"
|
||||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
MSG="Running workflow because ${{ github.repository }} is not a fork"
|
||||
echo "${MSG}"
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
elif [ "${{ github.event.repository.private }}" = "true" ]; then
|
||||
MSG="Not running workflow because ${{ github.repository }} is a private repository"
|
||||
echo "${MSG}"
|
||||
echo "${MSG}" >> "${GITHUB_STEP_SUMMARY}"
|
||||
echo "requirements-met=false" >> "${GITHUB_OUTPUT}"
|
||||
else
|
||||
MSG="Running workflow because ${{ github.repository }} is not a fork"
|
||||
echo "${MSG}"
|
||||
|
|
Loading…
Add table
Reference in a new issue