Skip to content

Commit

Permalink
Don't try to act on current workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asorbini committed Apr 18, 2024
1 parent 8b471af commit 858afcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
type: number
required: true
pr-merged:
description: "Whether the PR was merged or not"
description: "Merged"
type: boolean
default: false
default: true


concurrency:
Expand Down
5 changes: 5 additions & 0 deletions scripts/ci-admin
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@ def gh_api(
default: object = None,
noop: bool = False,
query: bool = True,
method: str = "GET",
) -> dict | list | None:
cmd = [
"gh api "
f"-H 'Accept: {GitHubApiAccept}' "
f"-H 'X-GitHub-Api-Version: {GitHubApiVersion}' "
f"{('-X ' + method) if method else ''}"
f"{url}"
]
if jq_filter:
Expand Down Expand Up @@ -1020,6 +1022,9 @@ def main() -> None:
global ScriptNoninteractive
ScriptNoninteractive = False

if args.current:
WorkflowRun.Current = args.current

if not args.action:
log.error("no action specified")
parser.print_help()
Expand Down

0 comments on commit 858afcf

Please sign in to comment.