Skip to content

Commit

Permalink
update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
BowTiedWoo committed Nov 1, 2024
1 parent a53d844 commit f404138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f404138

Please sign in to comment.