File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,20 @@ jobs:
74
74
vim --version
75
75
make --keep-going $MAKE_TARGET
76
76
77
- - name : Commit and push
78
- if : success() && matrix.make_target == 'fast-test' && github.ref_name == 'master'
77
+ - name : Generate js and py
78
+ if : matrix.make_target == 'fast-test' && github.ref_name == 'master'
79
+ env :
80
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
81
run : |
80
82
if ! make fast-check; then
81
83
git config --local user.name 'github-actions[bot]'
82
84
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
83
- git remote set-url origin 'https://github-actions:${{ github.token }}@github.com/${{ github.repository }}'
85
+ git switch -c bot/generate-jspy
84
86
git add js/vimlparser.js py/vimlparser.py
85
- git commit -m 'generate js and py'
86
- git push origin '${{ github.ref_name }}'
87
+ git commit -m 'chore: generate js and py'
88
+ git push -u origin "$(git rev-parse --abbrev-ref @)"
89
+ gh pr create --base master --title 'chore: generate js and py' --body '' | tee /tmp/pull_request
90
+ gh pr merge "$(cat /tmp/pull_request)" --auto --merge --delete-branch
87
91
fi
88
92
89
93
- name : Coverage from Python
You can’t perform that action at this time.
0 commit comments