Update Colors #57
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: Update Colors | |
on: | |
schedule: | |
- cron: '0 0 * * MON' # every Monday | |
workflow_dispatch: | |
env: | |
pr_label: "update-colors" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Today env | |
run: echo "TODAY=$(date '+%Y-%m-%d')" >> $GITHUB_ENV | |
- name: Update Color Tokens | |
run: bash .github/update-colors.sh ${{ env.pr_label }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: tibdex/github-app-token@v1 | |
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@v5 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
labels: | | |
${{ env.pr_label }} | |
title: Design Tokens Colors Update on ${{ env.TODAY }} | |
body: "" | |
base: main | |
branch: tokens-update-colors |