ci: bump actions and ensure consistent naming (#263)
This commit is contained in:
1 parent
73757fa1d3
commit
f36102df9e
7 files changed
+27
-30
No files matched your search
@@ -13,27 +13,24 @@ env:
|
||||
jobs:
|
||||
generate-health-files:
|
||||
runs-on: ubuntu-latest
|
||||
name: Generate Health Files
|
||||
name: Generate health files
|
||||
permissions:
|
||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||
# added or changed files to the repository.
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Check Out Repository
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
if: env.HAS_USERSTYLES_TOKEN
|
||||
with:
|
||||
token: ${{ secrets.USERSTYLES_TOKEN }}
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Check Out Repository (Fork)
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
if: env.HAS_USERSTYLES_TOKEN == 'false'
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Set up Deno
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v1.x
|
||||
@@ -44,12 +41,12 @@ jobs:
|
||||
key: ${{ hashFiles('src/generate/deno.lock') }}
|
||||
path: ${{ env.DENO_DIR }}
|
||||
|
||||
- name: Update Health Files
|
||||
- name: Generate health files
|
||||
working-directory: src/generate
|
||||
run: ./generate.ts
|
||||
|
||||
- name: Push Changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
- name: Push changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' && env.HAS_USERSTYLES_TOKEN }}
|
||||
with:
|
||||
commit_message: "chore: generate health files"
|
||||
|
||||
Reference in new issue
Block a user