Skip to content

Commit

Permalink
Update sync-and-replace.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
minseks authored Mar 13, 2024
1 parent 3012ecd commit e9dee03
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/sync-and-replace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ jobs:
- name: Check for changes
id: check_changes
run: |
if git diff --quiet; then
echo "No changes detected."
echo "changes=no" >> $GITHUB_ENV
else
echo "Changes detected."
echo "changes=yes" >> $GITHUB_ENV
git diff --quiet
echo "changed=$?" >> $GITHUB_ENV
- name: Commit and push changes
if: env.changes == 'yes'
if: env.changed == '1'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
Expand Down

0 comments on commit e9dee03

Please sign in to comment.