File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 7
7
tags :
8
8
- test*
9
9
10
+ permissions :
11
+ contents : write
12
+
10
13
jobs :
11
14
release :
12
15
runs-on : ubuntu-latest
@@ -19,19 +22,12 @@ jobs:
19
22
run : python .github/workflows/lib/yaml_to_json.py resources/referers.yml resources/referers-${{ steps.datetime.outputs.datetime }}.json
20
23
- name : Prepare latest json
21
24
run : cp resources/referers-${{ steps.datetime.outputs.datetime }}.json resources/referers-latest.json
22
- - name : Commit new json files
25
+ - name : Commit and push new json files
23
26
run : |
24
27
git config --local user.email "github-actions[bot]@users.noreply.github.com"
25
28
git config --local user.name "github-actions[bot]"
29
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
30
+ git checkout referer-json
26
31
git add resources/referers-${{ steps.datetime.outputs.datetime }}.json resources/referers-latest.json
27
32
git commit -m "Add referers-${{ steps.datetime.outputs.datetime }}.json"
28
- - name : Push changes
29
- uses : ad-m/github-push-action@master
30
- with :
31
- github_token : ${{ secrets.GITHUB_TOKEN }}
32
- branch : referer-json
33
- # - name: Push new json files to referer-json branch
34
- # run: |
35
- # git add resources/referers-${{ steps.datetime.outputs.datetime }}.json resources/referers-latest.json
36
- # git commit -m "Add referers-${{ steps.datetime.outputs.datetime }}.json"
37
- # git push origin referer-json
33
+ git push origin referer-json
You can’t perform that action at this time.
0 commit comments