Skip to content

Commit

Permalink
ci(ci): correct the job name in inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Dec 20, 2023
1 parent c3d9d2d commit 6d6d5f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:

jobs:
check-dist:
name: Check dist/
name: Check dist
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow_id: '.github/workflows/check-dist.yml'
jobs: '["Diff"]'
jobs: '["Check dist"]'
head_sha: ${{ github.event.pull_request.head.sha }}
repo: 'gear-tech/fork-action'
ref: ${{ github.head_ref || github.ref_name }}
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export default class Api {
core.info(`Forking status of ${jobs} from ${run.html_url} ...`);
for (;;) {
const _jobs = await this.getJobs(run.id, jobs);
if (_jobs.length === 0) {
core.warning(`No jobs of ${jobs} found from ${run.url}.`);
}

const _checks = await Promise.all(
_jobs.map(async job => {
const check = checks[job.name];
Expand Down

0 comments on commit 6d6d5f7

Please sign in to comment.