build.yml: update adafruit-owned repo check to exclude adafruit derived users (e.g. 'adafruit-adabot')
This commit is contained in:
parent
7d76018eea
commit
edffed2a4b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue