From 266760a98af7c759c33a6029b6d346e3aca98dfb Mon Sep 17 00:00:00 2001 From: RokGrah <69851279+RokGrah@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:00:47 +0100 Subject: [PATCH] Update workflow_submit_model_forecasts.yml --- .../workflows/workflow_submit_model_forecasts.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/workflow_submit_model_forecasts.yml b/.github/workflows/workflow_submit_model_forecasts.yml index 6f8f227..a5e54b0 100644 --- a/.github/workflows/workflow_submit_model_forecasts.yml +++ b/.github/workflows/workflow_submit_model_forecasts.yml @@ -20,7 +20,6 @@ repository: 'EU-ECDC/ECDC-Mathematical-Models' ref: 'main' path: './source-repo' - #token: ${{ secrets.MY_PAT_SECRET_RespiCast }} # Step 2: Checkout the destination repository (RespiCast-SyndromicIndicators) - name: Checkout destination repository @@ -29,7 +28,6 @@ repository: 'european-modelling-hubs/RespiCast-SyndromicIndicators' ref: 'main' path: './destination-repo' - #token: ${{ secrets.GITHUB_TOKEN }} # Step 3: Sync destination repo and create a new branch - name: Create a new branch @@ -38,8 +36,6 @@ git config --global user.name "github-actions[bot]" cd ./destination-repo git checkout -b add-results-RespiCast-SyndromicIndicators - #env: - #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Step 4: Copy the two model-output files to the destination repository - name: Copy model-output files @@ -57,16 +53,15 @@ git add ./model-output/ECDC-soca_simplex/2024-11-27-ECDC-soca_simplex.csv \ ./model-output/ECDC-SARIMA/2024-11-27-ECDC-SARIMA.csv git commit -m "Submitting forecasts of Syndromic_indicators - soca_simplex and SARIMA models" - git push -u origin add-results-RespiCast-SyndromicIndicators - git push -u https://x-access-token:${{ secrets.Secret_PUSH_ACCESS_RespiCast }}@github.com/european-modelling-hubs/RespiCast-SyndromicIndicators.git add-results-files - #env: - #GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + #git push -u origin add-results-RespiCast-SyndromicIndicators + git push -u https://x-access-token:${{ secrets.FORECASTHUB_TOKEN }}@github.com/european-modelling-hubs/RespiCast-SyndromicIndicators.git add-results-RespiCast-SyndromicIndicators # Step 6: Open a pull request - name: Create a pull request run: | cd ./destination-repo - gh pr create --head github-actions[bot]:add-results-files \ + #gh pr create --head github-actions[bot]:add-results-RespiCast-SyndromicIndicators \ + gh pr create --head add-results-RespiCast-SyndromicIndicators \ --base main \ --title "Submitting ECDC forecasts" \ --body "This PR adds the ECDC forecasts to RespiCast repo."