From 1650da20e9163775bb9b1a464c0a24de033eadd5 Mon Sep 17 00:00:00 2001 From: Rees Pozzi Date: Tue, 29 Oct 2024 10:11:42 +0000 Subject: [PATCH] Update after test to now push to master --- .github/workflows/auto-start-status-check.yaml | 9 ++++++--- .github/workflows/auto-stop-status-check.yaml | 4 +--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-start-status-check.yaml b/.github/workflows/auto-start-status-check.yaml index 14936ae5..2511e96f 100644 --- a/.github/workflows/auto-start-status-check.yaml +++ b/.github/workflows/auto-start-status-check.yaml @@ -3,6 +3,8 @@ on: workflow_dispatch: schedule: - cron: "30 7 * * 1-5" # Every weekday at 7:30am BST +env: + GH_TOKEN: ${{ secrets.PLATFORM_USER_TOKEN }} permissions: id-token: write jobs: @@ -11,6 +13,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: '0' + token: ${{ env.GH_TOKEN }} - name: "Az CLI login" uses: azure/login@v2 @@ -46,7 +51,5 @@ jobs: git config user.name hmcts-platform-operations git config user.email github-platform-operations@hmcts.net git pull - git checkout -b testing-json-file-updates-start git add ./status - git commit -m "Update json files start status updates" - git push --set-upstream origin testing-json-file-updates-start + git push diff --git a/.github/workflows/auto-stop-status-check.yaml b/.github/workflows/auto-stop-status-check.yaml index df663e56..ec2efe9e 100644 --- a/.github/workflows/auto-stop-status-check.yaml +++ b/.github/workflows/auto-stop-status-check.yaml @@ -51,7 +51,5 @@ jobs: git config user.name hmcts-platform-operations git config user.email github-platform-operations@hmcts.net git pull - git checkout -b testing-json-file-updates-stop git add ./status - git commit -m "Update json files stop status updates" - git push --set-upstream origin testing-json-file-updates-stop + git push