Skip to content

Commit cb74c73

Browse files
committed
tst
Signed-off-by: Charlie Truong <[email protected]>
1 parent ee5bb4b commit cb74c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/azure-queue-events.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
119119
# Get current run ID and job ID
120120
run_id = os.environ.get('GITHUB_RUN_ID')
121-
job_id = os.environ.get('GITHUB_JOB')
121+
current_job_id = os.environ.get('GITHUB_JOB')
122122
123123
headers = {
124124
'Authorization': f'token {token}',
@@ -133,7 +133,7 @@ jobs:
133133
for job in jobs:
134134
# Only cancel other read-events jobs that are in progress
135135
if (job['name'].startswith('read-events') and
136-
job['id'] != int(job_id) and
136+
job['name'] != current_job_id and
137137
job['status'] in ['queued', 'in_progress']):
138138
cancel_url = f"{url}/{job['id']}/cancel"
139139
cancel_response = requests.post(cancel_url, headers=headers)

0 commit comments

Comments
 (0)