Skip to content

- Changed medium to Medium etc. Case-sensitive #43

- Changed medium to Medium etc. Case-sensitive

- Changed medium to Medium etc. Case-sensitive #43

Workflow file for this run

name: Convert tokens to css variables
on:
push:
branches: [main]
jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Commit and push if changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add -A
git commit -m "Generated build output" -a || exit 0 # This line prevents the action from failing if there's nothing to commit
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify Slack about the update
uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "✅ Design Tokens updated!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.head_commit.message }}"
}
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}