From f1f8f78420318008f92c49a8b54de52dd81a6dde Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 16 Jan 2025 13:55:22 +0100 Subject: [PATCH] Update update_json_date.yml --- .github/workflows/update_json_date.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_json_date.yml b/.github/workflows/update_json_date.yml index d0bed7e8..db308255 100644 --- a/.github/workflows/update_json_date.yml +++ b/.github/workflows/update_json_date.yml @@ -18,9 +18,13 @@ jobs: ref: ${{ github.head_ref }} token: ${{ secrets.JSON_APP_KEY }} fetch-depth: 0 + persist-credentials: true - name: Check and Update New JSON Files run: | + # Konfiguriere Git mit dem Token für HTTPS + git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/" + BASE_BRANCH=${{ github.event.pull_request.base.ref }} HEAD_BRANCH=${{ github.event.pull_request.head.ref }} @@ -56,10 +60,11 @@ jobs: if [[ -n $(git status -s) ]]; then git commit -am "Update date_created to today's date in new JSON files" - git push + git push origin HEAD else echo "No changes needed" fi env: GH_TOKEN: ${{ secrets.JSON_APP_KEY }} + GITHUB_TOKEN: ${{ secrets.JSON_APP_KEY }} APP_ID: ${{ secrets.JSON_APP_ID }}