mirror of
https://github.com/spitkov/ynsrepo.git
synced 2025-01-18 04:24:38 +01:00
Update GitHub Actions workflow with PAT authentication
This commit is contained in:
parent
e719f305c8
commit
c3c615c506
1 changed files with 4 additions and 2 deletions
6
.github/workflows/update-repo.yml
vendored
6
.github/workflows/update-repo.yml
vendored
|
@ -12,6 +12,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -58,8 +60,8 @@ jobs:
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add repo.json
|
git add repo.json
|
||||||
git diff --quiet && git diff --staged --quiet || git commit -m "Update repo.json"
|
git diff --quiet && git diff --staged --quiet || git commit -m "Update repo.json"
|
||||||
git push
|
git push
|
Loading…
Reference in a new issue