Skip to content

chore: 📸 Update Paparazzi golden images (#1303) #125

chore: 📸 Update Paparazzi golden images (#1303)

chore: 📸 Update Paparazzi golden images (#1303) #125

Workflow file for this run

name: '🎨 PR icon updates'
on:
push:
branches: [ "chore-updated-icons" ]
concurrency:
group: '${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
env:
FILE: 'spark-icons/src/main/kotlin/com/adevinta/spark/icons/SparkIcons.kt'
jobs:
pr-icon-updates:
# Detect recursive calls based on last commit message
if: ${{ github.event.head_commit.message != '🎨 Update `SparkIcons.kt`' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: chore-updated-icons
fetch-depth: 0
token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
- run: gh pr create --fill
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
- run: |
./scripts/spark-icons-kt/spark-icons-kt.main.kts --input=spark-icons/src/main/res/drawable --output="$FILE" --copyright=scripts/spark-icons-kt/COPYRIGHT.kt
if ! git diff --quiet --exit-code -- "$FILE" ;
then
git config user.name 'spark-ui-bot'
git config user.email 'spark-ui-bot@users.noreply.github.com'
git commit "$FILE" -m '🎨 Update `SparkIcons.kt`'
git show
git push
echo "::notice::UPDATED"
else
echo "::notice::UP-TO-DATE"
fi