fix check-job-skipped.ts (#3626)
This commit is contained in:
2
.github/scripts/check-job-skipped.ts
vendored
2
.github/scripts/check-job-skipped.ts
vendored
@@ -16,7 +16,7 @@ async function run() {
|
||||
const jobName = process.env.JOB_NAME;
|
||||
if (!jobName) throw new Error("JOB_NAME not set");
|
||||
|
||||
const job = data.jobs.find(({name}) => name === jobName);
|
||||
const job = data.jobs.find(({name}) => name.startsWith(jobName));
|
||||
if (!job) throw new Error(`job with name ${jobName} not found in workflow run with id ${run_id}`);
|
||||
|
||||
core.setOutput('was_skipped', job.conclusion === 'skipped');
|
||||
|
||||
1
.github/workflows/ios-ci.yml
vendored
1
.github/workflows/ios-ci.yml
vendored
@@ -365,6 +365,7 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Write release notifications
|
||||
if: env.make_release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: node .github/scripts/notify-release-on-prs.ts --tag ios-v${{ env.version }}
|
||||
|
||||
Reference in New Issue
Block a user