We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5bb4b commit cb74c73Copy full SHA for cb74c73
.github/workflows/azure-queue-events.yaml
@@ -118,7 +118,7 @@ jobs:
118
119
# Get current run ID and job ID
120
run_id = os.environ.get('GITHUB_RUN_ID')
121
- job_id = os.environ.get('GITHUB_JOB')
+ current_job_id = os.environ.get('GITHUB_JOB')
122
123
headers = {
124
'Authorization': f'token {token}',
@@ -133,7 +133,7 @@ jobs:
133
for job in jobs:
134
# Only cancel other read-events jobs that are in progress
135
if (job['name'].startswith('read-events') and
136
- job['id'] != int(job_id) and
+ job['name'] != current_job_id and
137
job['status'] in ['queued', 'in_progress']):
138
cancel_url = f"{url}/{job['id']}/cancel"
139
cancel_response = requests.post(cancel_url, headers=headers)
0 commit comments