Skip to content

Commit c531088

Browse files
authored
git-auto-commit
1 parent 930db8c commit c531088

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/master.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,8 @@ jobs:
3232
git config user.name "github-actions[bot]"
3333
git config user.email "github-actions[bot]@users.noreply.github.com"
3434
35-
- name: Commit and push bundled spec
36-
run: |
37-
git add openapi-full.json
38-
if git diff --cached --quiet; then
39-
echo "No changes to commit."
40-
else
41-
git commit -m "chore: update bundled OpenAPI spec"
42-
git push
43-
fi
44-
env:
45-
# Use GitHub Actions token to push the commit
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- name: Commit and push changes
36+
uses: stefanzweifel/git-auto-commit-action@v5
37+
with:
38+
commit_message: chore: update bundled OpenAPI spec
39+
file_pattern: openapi-full.json

0 commit comments

Comments
 (0)