Skip to content

Commit

Permalink
[wip] github action for build
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbuilds committed Jul 24, 2024
1 parent a186b03 commit 4d60a7c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ jobs:

- name: Commit and push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Automated build" && git push)
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Automated build"
git push
fi

0 comments on commit 4d60a7c

Please sign in to comment.