@@ -468,13 +468,29 @@ jobs:
468468 echo "PACKAGES_TOKEN is set."
469469 echo "PACKAGES_TOKEN=$PACKAGES_TOKEN" # This should print nothing, it's a secret!
470470
471- - name : Get artifact location
471+ # - name: Get artifact location
472+ # env:
473+ # PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
474+ # GH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
475+ # run: |
476+ # # Get the artifact list for the current workflow run
477+ # ARTIFACT_LIST=$(gh api "repos/TechnologyEnhancedLearning/TELBlazor/actions/runs/${GITHUB_RUN_ID}/artifacts")
478+ # # Echo the entire artifact list for debugging purposes
479+ # echo "Artifact List: $ARTIFACT_LIST"
480+ # # Extract the download URL from the artifact list (first artifact in the list)
481+ # #ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].archive_download_url')
482+ # ARTIFACT_URL=$(echo "$ARTIFACT_LIST" | jq -r '.artifacts[0].url')
483+ # # Echo the artifact URL to confirm
484+ # echo "Artifact URL: $ARTIFACT_URL"
485+ # echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
486+
487+ - name : Get artifact location
472488 env :
473489 PACKAGES_TOKEN : ${{ secrets.PACKAGES_TOKEN }}
474490 GH_TOKEN : ${{ secrets.PACKAGES_TOKEN }}
475491 run : |
476492 # Get the artifact list for the current workflow run
477- ARTIFACT_LIST=$(gh api "repos/TechnologyEnhancedLearning/TELBlazor/actions/runs/${GITHUB_RUN_ID }/artifacts")
493+ ARTIFACT_LIST=$(gh api "repos/TechnologyEnhancedLearning/TELBlazor/actions/runs/${github.run_id }/artifacts")
478494 # Echo the entire artifact list for debugging purposes
479495 echo "Artifact List: $ARTIFACT_LIST"
480496 # Extract the download URL from the artifact list (first artifact in the list)
@@ -483,8 +499,6 @@ jobs:
483499 # Echo the artifact URL to confirm
484500 echo "Artifact URL: $ARTIFACT_URL"
485501 echo "artifact_url=$ARTIFACT_URL" >> $GITHUB_ENV
486-
487-
488502
489503 - name : Trigger workflow in TELBlazor-CodeReport repo
490504 env :
0 commit comments