From edffed2a4baaf197ca4c8dd8e79a928fe905f919 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Wed, 11 Dec 2019 21:11:55 -0600 Subject: [PATCH] build.yml: update adafruit-owned repo check to exclude adafruit derived users (e.g. 'adafruit-adabot') --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f8312835..65e7a6113 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: