Skip to content

Commit

Permalink
Update workflow_submit_model_forecasts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RokGrah authored Nov 27, 2024
1 parent aac4a6d commit 266760a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/workflow_submit_model_forecasts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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."
Expand Down

0 comments on commit 266760a

Please sign in to comment.