diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml index 01b9fa8..c40d1b1 100644 --- a/.github/workflows/scheduled.yaml +++ b/.github/workflows/scheduled.yaml @@ -28,11 +28,11 @@ jobs: - name: Retrieve Job ID id: get_job_id env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }} RUN_ID: ${{ github.run_id }} JOB_NAME: ${{ github.job }} run: | - job_id=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \ + job_id=$(curl -s -H "Authorization: token ${GH_API_TOKEN}" \ "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/runs/${RUN_ID}/jobs" \ | jq -r ".jobs[] | select(.name == \"${JOB_NAME}\") | .id") echo "job_id=$job_id" >> $GITHUB_ENV