Skip to content

Commit

Permalink
merge(#3): chore: further optimizations to workflow
Browse files Browse the repository at this point in the history
chore: further optimizations to workflow
  • Loading branch information
403-html authored Aug 26, 2024
2 parents 9ce55f8 + b6ae078 commit b95794e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
run: yarn authors

- name: Check if AUTHORS.md has changed
id: check_changes
run: |
if git status --porcelain | grep 'AUTHORS.md'; then
echo "changed=true" >> $GITHUB_ENV
echo "CHANGED=true" >> $GITHUB_ENV
else
echo "changed=false" >> $GITHUB_ENV
echo "CHANGED=false" >> $GITHUB_ENV
fi
echo "CHANGED is $CHANGED"
- name: Commit changes
if: steps.check_changes.outputs.changed == 'true'
if: ${{ env.CHANGED == 'true' }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand Down

0 comments on commit b95794e

Please sign in to comment.