change to command line args for the secret #177
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: File Generator | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "src/**/*" | |
env: | |
DENO_DIR: deno_cache | |
jobs: | |
generate-health-files: | |
runs-on: ubuntu-latest | |
name: Generate Health Files | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.USERSTYLES_TOKEN }} | |
ref: ${{ github.ref }} | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Cache Deno dependencies | |
uses: actions/cache@v3 | |
with: | |
key: ${{ hashFiles('src/generate/deno.lock') }} | |
path: ${{ env.DENO_DIR }} | |
- name: Update Health Files | |
working-directory: src/generate | |
run: ./generate.ts | |
- name: Push Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }} | |
with: | |
commit_message: "chore: generate health files" | |
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
branch: ${{ github.ref }} | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json |