mirror of
https://code.forgejo.org/docker/actions-toolkit.git
synced 2025-06-24 06:38:23 -04:00
github: set attempts to workflowRunURL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
d344961874
commit
760d0c2369
6 changed files with 19 additions and 10 deletions
|
@ -65,7 +65,9 @@ export class GitHub {
|
|||
}
|
||||
|
||||
static get workflowRunURL(): string {
|
||||
return `${GitHub.serverURL}/${github.context.repo.owner}/${github.context.repo.repo}/actions/runs/${github.context.runId}`;
|
||||
const runID = process.env.GITHUB_RUN_ID || github.context.runId;
|
||||
const runAttempt = process.env.GITHUB_RUN_ATTEMPT || 1;
|
||||
return `${GitHub.serverURL}/${github.context.repo.owner}/${github.context.repo.repo}/actions/runs/${runID}/attempts/${runAttempt}`;
|
||||
}
|
||||
|
||||
static get actionsRuntimeToken(): GitHubActionsRuntimeToken | undefined {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue