build.yml: update adafruit-owned repo check to exclude adafruit derived users (e.g. 'adafruit-adabot')

This commit is contained in:
sommersoft 2019-12-11 21:11:55 -06:00
parent 7d76018eea
commit edffed2a4b

View file

@ -15,7 +15,7 @@ jobs:
steps:
- name: repository
env:
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit') }}
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit/') }}
run: |
echo "This workflow will only run if Adafruit is the repository owner."
echo "Repository owner is Adafruit: $OWNER_IS_ADAFRUIT"
@ -24,7 +24,7 @@ jobs:
# Only run the build on Adafruit's repository. Forks won't have the secrets.
# Its necessary to do this here, since 'schedule' events cannot (currently)
# be limited (they run on all forks' default branches).
if: startswith(github.repository, 'adafruit')
if: startswith(github.repository, 'adafruit/')
steps:
- uses: actions/checkout@v1
with: