File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
permissions :
8
8
contents : write
9
+ actions : write # Allows the workflow to trigger other workflows on push
9
10
10
11
jobs :
11
12
backport :
19
20
20
21
- name : Set up Git
21
22
run : |
22
- git config --global user.name "github-actions[bot]"
23
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
24
- git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
23
+ git config --global user.name "yuhongsun96"
24
+ git config --global user.email "yuhongsun96@gmail.com"
25
+ # Configure Git to use the PAT for authentication
26
+ git remote set-url origin https://yuhongsun96:${{ secrets.YUHONG_GH_ACTIONS }}@github.com/${{ github.repository }}.git
25
27
26
28
- name : Check for Backport Checkbox
27
29
id : checkbox-check
80
82
# Create new beta tag
81
83
git tag ${{ steps.list-branches.outputs.new_beta_tag }}
82
84
# Push the changes and tag to the beta branch
83
- git push origin ${{ steps.list-branches.outputs.beta }}
85
+ git push origin ${{ steps.list-branches.outputs.beta }} --force
84
86
git push origin ${{ steps.list-branches.outputs.new_beta_tag }}
85
87
# Checkout the stable branch
86
88
git checkout ${{ steps.list-branches.outputs.stable }}
92
94
# Create new stable tag
93
95
git tag ${{ steps.list-branches.outputs.new_stable_tag }}
94
96
# Push the changes and tag to the stable branch
95
- git push origin ${{ steps.list-branches.outputs.stable }}
96
- git push origin ${{ steps.list-branches.outputs.new_stable_tag }}
97
+ git push origin ${{ steps.list-branches.outputs.stable }} --force
98
+ git push origin ${{ steps.list-branches.outputs.new_stable_tag }}
You can’t perform that action at this time.
0 commit comments