File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 88 - cron : 0 10 * * *
99
1010jobs :
11+ check-repo-owner :
12+ # This job is so the entire workflow will end successfully and give some
13+ # output to explain why it hasn't run on a non-Adafruit fork.
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : repository
17+ env :
18+ OWNER_IS_ADAFRUIT : ${{ startswith(github.repository, 'adafruit') }}
19+ run : |
20+ echo "This workflow will only run if Adafruit is the repository owner."
21+ echo "Repository owner is Adafruit: $OWNER_IS_ADAFRUIT"
1122 build :
1223 runs-on : ubuntu-latest
24+ # Only run the build on Adafruit's repository. Forks won't have the secrets.
25+ # Its necessary to do this here, since 'schedule' events cannot (currently)
26+ # be limited (they run on all forks' default branches).
27+ if : startswith(github.repository, 'adafruit')
1328 steps :
1429 - uses : actions/checkout@v1
1530 with :
You can’t perform that action at this time.
0 commit comments