Fix workflow

This commit is contained in:
Nassim Jahnke 2023-03-05 09:40:42 +01:00
parent e7a4ace020
commit d039e334d7
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
@ -25,11 +28,6 @@ jobs:
with:
java-version: 17
- name: Configure Git details
run: |
git config --global user.name 'not quite kenny'
git config --global user.email 'notactuallykennytv2@something.com'
- name: Check for snapshot
run: pip install -r requirements.txt && python download_server.py
@ -61,6 +59,13 @@ jobs:
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "automation"
git add .
git commit -m "${{ steps.last_snapshot.outputs.content }}"
git push
git commit -am "Update: ${{ steps.last_snapshot.outputs.content }}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TOKEN }}
branch: ${{ github.ref }}