File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v1
9
+ - uses : actions/checkout@v1 # v1, NOT v2
10
10
- uses : actions/setup-python@v1
11
11
with :
12
12
python-version : 3.x
13
13
- name : Write DIRECTORY.md
14
14
run : |
15
15
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
16
- git config --global user.name "GitHub Actions"
17
- git config --global user.email "actions@github.com"
18
- git commit -am "updating DIRECTORY.md" || true
19
- - name : Push DIRECTORY.md
20
- if : github.ref == 'refs/heads/master'
16
+ git config --global user.name github-actions
17
+ git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
18
+ git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
19
+ - name : Update DIRECTORY.md
21
20
run : |
22
- git push "https://${GITHUB_ACTOR}:${{secrets.GITHUB_TOKEN}}@github.com/$GITHUB_REPOSITORY.git" ${master} --force
21
+ git add DIRECTORY.md
22
+ git commit -am "updating DIRECTORY.md" || true
23
+ git push --force origin HEAD:$GITHUB_REF || true
You can’t perform that action at this time.
0 commit comments