File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ permissions: {}
14
14
jobs :
15
15
update_urls :
16
16
runs-on : ubuntu-24.04
17
+ env :
18
+ GH_TOKEN : ${{ github.token }}
17
19
permissions :
18
20
contents : write
19
21
pull-requests : write
@@ -22,26 +24,26 @@ jobs:
22
24
- uses : actions/checkout@v4
23
25
with :
24
26
ref : dev
27
+ fetch-depth : 0
25
28
26
29
- name : Switch to update_urls branch
27
30
run : |
31
+ git config user.name 'github-actions[bot]'
32
+ git config user.email 'github-actions[bot]@users.noreply.github.com'
28
33
if git fetch origin update_urls 2> /dev/null
29
34
then
30
35
git switch update_urls
36
+ git rebase dev
31
37
else
32
38
git checkout -b update_urls
33
39
fi
34
40
35
41
- run : bash .github/workflows/update_urls.bash
36
42
37
43
- name : Commit changes
38
- env :
39
- GH_TOKEN : ${{ github.token }}
40
44
run : |
41
45
git diff --exit-code && exit 0
42
46
git add -A
43
- git config user.name 'github-actions[bot]'
44
- git config user.email 'github-actions[bot]@users.noreply.github.com'
45
47
if git fetch origin update_urls 2> /dev/null
46
48
then
47
49
git commit --amend --no-edit
You can’t perform that action at this time.
0 commit comments