Update Tags screenshot #119
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |