Skip to content

Commit

Permalink
Merge pull request #94 from Mogyuchi/feature/#92_auto_pr
Browse files Browse the repository at this point in the history
feature/#92_auto_pr
  • Loading branch information
Mogyuchi authored May 30, 2022
2 parents 831c9a9 + e409c03 commit 5e17255
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/auto_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
git config push.default current
- name: Create a pull request
run: |
if ${{ startsWith(github.event.ref, 'release/') }}; then
exit 0
fi
ISSUE=`echo "${{ github.event.ref }}" | grep -oE '#[0-9]+'`
if ${{ startsWith(github.event.ref, 'hotfix/') || startsWith(github.event.ref, 'release/') }}; then
if ${{ startsWith(github.event.ref, 'hotfix/') }}; then
if git diff --quiet origin/main; then
git commit --allow-empty -m "empty commit"
git push
Expand Down

0 comments on commit 5e17255

Please sign in to comment.