Skip to content

Commit

Permalink
Do not attempt to send screenshots to Pixel Eagle without a token
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeLakers2 committed Dec 5, 2024
1 parent d2a07f9 commit f5be9ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/send-screenshots-to-pixeleagle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,27 @@ on:
required: true
type: string

env:
PIXELEAGLE_TOKEN_EXISTS: ${{ secrets.PIXELEAGLE_TOKEN != '' }}

jobs:
send-to-pixel-eagle:
name: Send screenshots to Pixel Eagle
runs-on: ubuntu-24.04
steps:
- name: Notify user on non-existant token

Check warning on line 27 in .github/workflows/send-screenshots-to-pixeleagle.yml

View workflow job for this annotation

GitHub Actions / typos

"existant" should be "existent".
if: ${{ env.PIXELEAGLE_TOKEN_EXISTS == 'false' }}
run: |
echo "The PIXELEAGLE_TOKEN secret does not exist, so uploading screenshots to Pixel Eagle was skipped." >> $GITHUB_STEP_SUMMARY
- name: Download artifact
if: ${{ env.PIXELEAGLE_TOKEN_EXISTS != 'false' }}
uses: actions/download-artifact@v4
with:
pattern: ${{ inputs.artifact }}

- name: Send to Pixel Eagle
if: ${{ env.PIXELEAGLE_TOKEN_EXISTS != 'false' }}
env:
project: B04F67C0-C054-4A6F-92EC-F599FEC2FD1D
run: |
Expand Down

0 comments on commit f5be9ad

Please sign in to comment.