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 Jul 10, 2024
1 parent 7bf6984 commit c3e1e90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/index-recipes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
- name: Commit and push changes
run: |
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
git config --local user.email "action@github.com"
git config --local user.name "Lucee Docs GitHub Action"
if [ -n "$(git status --porcelain)" ];
if [ -n "$(git status --porcelain)" ]; then
git config --local user.email "action@github.com"
git config --local user.name "Lucee Docs 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
else
echo "No changes found"
echo "No changes found to commit"
fi

0 comments on commit c3e1e90

Please sign in to comment.