Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhanawa committed Jul 20, 2023
1 parent e244c66 commit 131cc04
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,24 @@ jobs:
git config --global core.autocrlf true
git config --global core.safecrlf false
- name: Check changes
id: check
run: |
changed=$(git diff --name-only HEAD^ HEAD -- src)
if [ -n "$changed" ]; then
echo "::set-output name=has_changes::true"
else
echo "::set-output name=has_changes::false"
fi
- name: Commit versions-update
if: steps.check.outputs.has_changes == 'true'
run: |
git add src || true
git add src
git commit -m "Update versions"
- name: Push to ref
if: steps.check.outputs.has_changes == 'true'
run: |
git push origin HEAD:${{ github.ref_name }}
Expand All @@ -51,4 +63,4 @@ jobs:
- name: Push to releases
run: |
git push -f origin HEAD:releases
git push -f origin HEAD:releases

0 comments on commit 131cc04

Please sign in to comment.