Update GitHub Actions workflow with PAT authentication

This commit is contained in:
spitkov 2025-01-05 13:39:49 +01:00
parent e719f305c8
commit c3c615c506

View file

@ -12,6 +12,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT }}
- name: Set up Python
uses: actions/setup-python@v2
@ -58,8 +60,8 @@ jobs:
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add repo.json
git diff --quiet && git diff --staged --quiet || git commit -m "Update repo.json"
git push