Skip to content

Commit

Permalink
Update index-recipes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 26, 2024
1 parent c5deefa commit fa06846
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/index-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@ name: Generate Recipes Index
on:
push:
branches:
- '**' # This will trigger on push to any branch
- "**" # This will trigger on push to any branch

Check warning on line 6 in .github/workflows/index-recipes.yml

View workflow job for this annotation

GitHub Actions / 🧹 YAML Lint

6:14 [comments] too few spaces before comment
paths:
- 'docs/recipes/**'
- "docs/recipes/**"
workflow_dispatch:

jobs:
generate-index:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "14"

- name: Install dependencies
run: |
npm install fs-extra
- name: Install dependencies
run: |
npm install fs-extra
- name: Generate index
run: |
node .github/scripts/generate-index-recipes.js
- name: Generate index
run: |
node .github/scripts/generate-index-recipes.js
- name: Commit and push changes
run: |
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/recipes/index.json docs/recipes/README.md
git commit -m "Update recipes index and README"
git push origin $BRANCH_NAME
- name: Commit and push changes
run: |
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/recipes/index.json docs/recipes/README.md
git commit -m "Update recipes index and README"
git push origin $BRANCH_NAME

0 comments on commit fa06846

Please sign in to comment.