From d039e334d7aa570ccda45b67888649f52529e4b8 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sun, 5 Mar 2023 09:40:42 +0100 Subject: [PATCH] Fix workflow --- .github/workflows/main.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6846a70..6040757 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file + 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 }} \ No newline at end of file