Restore Github PAT in record screenshots, disable Maestro for forks (#2147)

* Restore PAT for `recoverScreenshots.yml` flow.

This is needed to trigger CI jobs automatically. In the case where this is not possible (forks) a message will be added to ask the user to add an empty commit to trigger the CI.

* Add community PR notice

* Disable Maestro steps for fork PRs
This commit is contained in:
Jorge Martin Espinosa
2024-01-03 12:26:46 +01:00
committed by GitHub
parent 852567211a
commit 02cb2b4ba9
3 changed files with 37 additions and 2 deletions

View File

@@ -43,7 +43,8 @@ jobs:
with:
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
- name: Record screenshots
id: record
run: ./.github/workflows/scripts/recordScreenshots.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN || secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}