Commit 2b2d92d 1 parent e91ebec commit 2b2d92d Copy full SHA for 2b2d92d
File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 28
28
29
29
- name : Configure git user
30
30
run : |
31
- git config --global user.email "[email protected] "
32
- git config --global user.name "Andy Fragen"
31
+ git config user.name ${{ github.actor }}
32
+ git config user.email ${{ github.actor }}@users.noreply.github.com
33
33
34
34
- name : Check if remote branch exists
35
35
run : echo "REMOTE_BRANCH_EXISTS=$([[ -z $(git ls-remote --heads origin generate-pot) ]] && echo "0" || echo "1")" >> $GITHUB_ENV
62
62
63
63
- name : Create pull request
64
64
if : env.CHANGES_DETECTED == 1
65
- uses : repo-sync/pull-request@v2
66
- with :
67
- source_branch : generate-pot
68
- destination_branch : ${{ github.event.repository.default_branch }}
69
- github_token : ${{ secrets.GITHUB_TOKEN }}
70
- pr_title : Generate POT
71
- pr_body : " This is an automated pull-request"
65
+ run : gh pr create --base ${BRANCH_NAME} --head generate-pot --title "Generate POT - $(date +'%Y-%m-%d')" --body "Automated PR"
66
+ env :
67
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
+ BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
You can’t perform that action at this time.
0 commit comments