Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/glimpse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
check-images:
runs-on: ubuntu-latest
env:
# Optional. Without it (for example on fork pull requests, which
# never receive secrets) the CLI uses its built-in public token,
# which only allows check and analyze and shares rate limits.
GLIMPSE_TOKEN: ${{ secrets.GLIMPSE_TOKEN }}
steps:
- uses: actions/checkout@v6
Expand All @@ -20,8 +23,4 @@ jobs:
composer global require --no-interaction --no-progress mathiasgrimm/glimpse-cli
composer global config bin-dir --absolute --quiet >> "$GITHUB_PATH"
- name: Check images
if: env.GLIMPSE_TOKEN != ''
run: glimpse check .
- name: Skipped (no token)
if: env.GLIMPSE_TOKEN == ''
run: echo "::warning::GLIMPSE_TOKEN is not available (fork PR, or the secret is not set); image check skipped."
Loading