diff --git a/.github/workflows/recordScreenshots.yml b/.github/workflows/recordScreenshots.yml index 260fd9253e..800cc4a661 100644 --- a/.github/workflows/recordScreenshots.yml +++ b/.github/workflows/recordScreenshots.yml @@ -82,5 +82,9 @@ jobs: run: ./.github/workflows/scripts/recordScreenshots.sh env: GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN || secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} + # Must be the `github.repository` context, not a secret. There is no + # GITHUB_REPOSITORY secret on this fork, so `secrets.GITHUB_REPOSITORY` expands to "" + # and overrides the built-in env var of the same name — recordScreenshots.sh then + # exits 1 with "No repo specified" before Gradle ever runs. + GITHUB_REPOSITORY: ${{ github.repository }} GRADLE_ARGS: ${{ env.CI_GRADLE_ARG_PROPERTIES }}