From fe0ed98f6a6a7435310a1636ef48bfdbd311f025 Mon Sep 17 00:00:00 2001 From: nikosbosse Date: Wed, 27 Nov 2024 15:59:29 +0100 Subject: [PATCH] fix gh actions script --- .github/workflows/submit-flu-forecasts.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/submit-flu-forecasts.yaml b/.github/workflows/submit-flu-forecasts.yaml index 49a1d1f..60c7c7b 100644 --- a/.github/workflows/submit-flu-forecasts.yaml +++ b/.github/workflows/submit-flu-forecasts.yaml @@ -67,6 +67,9 @@ jobs: # Add upstream remote if it doesn't exist git remote add upstream https://github.com/cdcepi/FluSight-forecast-hub.git 2>/dev/null || true + # Set the origin remote with authentication token + git remote set-url origin "https://${{ secrets.PRIVATE_ACCESS_TOKEN }}@github.com/${{ github.actor }}/FluSight-forecast-hub.git" + # Fetch and sync with upstream git fetch upstream git checkout main