-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ensure github actions don't break formatting * convert github action helper scripts to use tab indents
- Loading branch information
1 parent
40036e2
commit 2d93604
Showing
2 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: context.payload.workflow_run.id, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: context.payload.workflow_run.id, | ||
}); | ||
|
||
for (const artifact of allArtifacts.data.artifacts) { | ||
// Extract the PR number from the artifact name | ||
const match = /^npm-package-wrangler-(\d+)$/.exec(artifact.name); | ||
if (match) { | ||
fs.appendFileSync( | ||
process.env.GITHUB_ENV, | ||
`\nWORKFLOW_RUN_PR=${match[1]}` + | ||
`\nWORKFLOW_RUN_ID=${context.payload.workflow_run.id}` | ||
); | ||
break; | ||
} | ||
// Extract the PR number from the artifact name | ||
const match = /^npm-package-wrangler-(\d+)$/.exec(artifact.name); | ||
if (match) { | ||
fs.appendFileSync( | ||
process.env.GITHUB_ENV, | ||
`\nWORKFLOW_RUN_PR=${match[1]}` + | ||
`\nWORKFLOW_RUN_ID=${context.payload.workflow_run.id}` | ||
); | ||
break; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters