Skip to content

Commit 5fe7f02

Browse files
authored
Update wrap_branch.yml
1 parent eff745d commit 5fe7f02

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/wrap_branch.yml

+21-7
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,25 @@ jobs:
6262
git commit -m "Wrap translations"
6363
echo "WRAPPED=True" >> $GITHUB_ENV
6464
fi
65-
# Push changes
66-
- name: Push changes
67-
if: env.WRAPPED == 'True'
68-
uses: ad-m/github-push-action@master
65+
# Create pull request
66+
- name: Create Pull Request
67+
id: cpr
68+
uses: peter-evans/create-pull-request@v4
6969
with:
70-
github_token: ${{ secrets.GITHUB_TOKEN }}
71-
branch: ${{ github.ref_name }}
72-
force: True
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
commit-message: Update report
72+
committer: GitHub <noreply@github.com>
73+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
74+
signoff: false
75+
branch: ${{ github.ref_name }}/wrap
76+
delete-branch: true
77+
title: 'Wrap branch: ${{ github.ref_name }}'
78+
body: |
79+
Wrapped all translations on requested branch.
80+
81+
labels: |
82+
wrap
83+
assignees: github-actions
84+
team-reviewers: |
85+
reviewers
86+
draft: false

0 commit comments

Comments
 (0)