Skip to content

Commit 155122b

Browse files
committed
update repo owner check to 'adafruit/' to reduce false positives on adafruit derivative accounts
1 parent 6b5666a commit 155122b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/bundle_cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: repository
1414
env:
15-
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit') }}
15+
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit/') }}
1616
run: |
1717
echo "This workflow will only run if Adafruit is the repository owner."
1818
echo "Repository owner is Adafruit: $OWNER_IS_ADAFRUIT"
@@ -21,7 +21,7 @@ jobs:
2121
# Only run the build on Adafruit's repository. Forks won't have the secrets.
2222
# Its necessary to do this here, since 'schedule' events cannot (currently)
2323
# be limited (they run on all forks' default branches).
24-
if: startswith(github.repository, 'adafruit')
24+
if: startswith(github.repository, 'adafruit/')
2525
services:
2626
redis:
2727
image: redis

.github/workflows/reports_cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: repository
1414
env:
15-
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit') }}
15+
OWNER_IS_ADAFRUIT: ${{ startswith(github.repository, 'adafruit/') }}
1616
run: |
1717
echo "This workflow will only run if Adafruit is the repository owner."
1818
echo "Repository owner is Adafruit: $OWNER_IS_ADAFRUIT"
@@ -21,7 +21,7 @@ jobs:
2121
# Only run the build on Adafruit's repository. Forks won't have the secrets.
2222
# Its necessary to do this here, since 'schedule' events cannot (currently)
2323
# be limited (they run on all forks' default branches).
24-
if: startswith(github.repository, 'adafruit')
24+
if: startswith(github.repository, 'adafruit/')
2525
env:
2626
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
2727
steps:

0 commit comments

Comments
 (0)