Skip to content

changing the text color to the color itself cause black doesn't show … #21

changing the text color to the color itself cause black doesn't show …

changing the text color to the color itself cause black doesn't show … #21

name: Generate Color Swatches
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref || 'main' }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Generate color swatches
run: node generate-swatches.js
- name: Commit the generated image
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git diff --quiet HEAD || (git add assets/color-swatches.png && git commit -m "Update color swatches")
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}