Skip to content

Commit 297c1ee

Browse files
committed
Escape the escaping hell
1 parent 610b396 commit 297c1ee

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/phar.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,25 @@ jobs:
7474
env:
7575
GPG_ID: ${{ secrets.GPG_ID }}
7676

77-
- name: "Configure Git"
78-
working-directory: phpstan-dist
79-
run: |
80-
git config user.email "ondrej@mirtes.cz" && \
81-
git config user.name "Ondrej Mirtes"
82-
8377
- name: "Commit PHAR - development"
84-
working-directory: phpstan-dist
8578
if: "!startsWith(github.ref, 'refs/tags/')"
86-
run: |
87-
git add phpstan.phar phpstan.phar.asc && \
88-
git commit -S -m "Updated PHPStan to commit ${{ github.event.after }}" -m "${{ steps.git-log.outputs.log }}" && \
89-
git push --quiet origin 1.5.x
79+
uses: stefanzweifel/git-auto-commit-action@v4
80+
with:
81+
commit_user_name: "Ondrej Mirtes"
82+
commit_user_email: "ondrej@mirtes.cz"
83+
commit_author: "Ondrej Mirtes <ondrej@mirtes.cz>"
84+
commit_options: "--gpg-sign"
85+
repository: phpstan-dist
86+
commit_message: "Updated PHPStan to commit ${{ github.event.after }}\n\n${{ steps.git-log.outputs.log }}"
9087

9188
- name: "Commit PHAR - tag"
92-
working-directory: phpstan-dist
9389
if: "startsWith(github.ref, 'refs/tags/')"
94-
run: |
95-
git add phpstan.phar phpstan.phar.asc && \
96-
git commit -S -m "PHPStan ${GITHUB_REF#refs/tags/}" -m "${{ steps.git-log.outputs.log }}" && \
97-
git push --quiet origin 1.5.x && \
98-
git tag -s ${GITHUB_REF#refs/tags/} -m "${GITHUB_REF#refs/tags/}" && \
99-
git push --quiet origin ${GITHUB_REF#refs/tags/}
90+
uses: stefanzweifel/git-auto-commit-action@v4
91+
with:
92+
commit_user_name: "Ondrej Mirtes"
93+
commit_user_email: "ondrej@mirtes.cz"
94+
commit_author: "Ondrej Mirtes <ondrej@mirtes.cz>"
95+
commit_options: "--gpg-sign"
96+
repository: phpstan-dist
97+
commit_message: "PHPStan ${{github.ref_name}}\n\n${{ steps.git-log.outputs.log }}"
98+
tagging_message: ${{github.ref_name}}

0 commit comments

Comments
 (0)