This repository was archived by the owner on May 7, 2025. It is now read-only.
Update Illustrations #143
This file contains hidden or 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: Update Illustrations | |
| on: | |
| schedule: | |
| - cron: '0 0 * * MON' # every Monday | |
| workflow_dispatch: | |
| env: | |
| pr_label: "update-illustrations" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pngquant | |
| run: sudo apt-get install -y pngquant | |
| - name: Install imagemagick | |
| run: sudo apt-get install -y imagemagick | |
| - name: Today env | |
| run: echo "TODAY=$(date '+%Y-%m-%d')" >> $GITHUB_ENV | |
| - name: Update Illustration Tokens | |
| run: bash .github/update-illustrations.sh ${{ env.pr_label }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: tibdex/github-app-token@v2 | |
| id: generate-token | |
| with: | |
| app_id: ${{ secrets.PRBOT_APP_ID }} | |
| private_key: ${{ secrets.PRBOT_PRIVATE_KEY }} | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| labels: | | |
| ${{ env.pr_label }} | |
| title: Design Tokens Illustrations Update on ${{ env.TODAY }} | |
| body: "" | |
| base: main | |
| branch: tokens-update-illustrations |