File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ jobs:
100100 pip install azure-storage-queue azure-identity requests
101101
102102 - name : Read Events
103+ env :
104+ WORKER_ID : ${{ matrix.worker }}
105+ JOB_ID : ${{ github.job }}
106+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103107 run : |
104108 python - <<EOF
105109 import os
@@ -118,7 +122,7 @@ jobs:
118122
119123 # Get current run ID and job ID
120124 run_id = os.environ.get('GITHUB_RUN_ID')
121- current_job_id = os.environ.get('GITHUB_JOB_ID')
125+ current_job_id = os.environ['JOB_ID']
122126
123127 headers = {
124128 'Authorization': f'token {token}',
@@ -205,9 +209,6 @@ jobs:
205209
206210 print(f"Worker {worker_id}: Finished processing all messages")
207211 EOF
208- env :
209- WORKER_ID : ${{ matrix.worker }}
210- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
211212
212213 cleanup-queue :
213214 needs : read-events
You can’t perform that action at this time.
0 commit comments