Skip to content

Commit

Permalink
ci: use "ref_name" instead of "refName" in GH action (backport #5882) (
Browse files Browse the repository at this point in the history
…#5890)

ci: use "ref_name" instead of "refName" in GH action (#5882)

fix: use `ref_name` instead of `refName`

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit d24c433)

Co-authored-by: Ilya Lobkov <ilya.lobkov@konghq.com>
  • Loading branch information
mergify[bot] and lobkovilya authored Feb 1, 2023
1 parent c7f3122 commit dc756a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-merged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
pr = context.payload.pull_request.number;
} else if (context.eventName == "push") {
const versionRegex = /v?(\d+)\.(\d+)\.\d+/;
const versionMatch = context.github.refName.match(versionRegex);
const versionMatch = context.github.ref_name.match(versionRegex);
if (!versionMatch) {
return;
}
Expand Down

0 comments on commit dc756a1

Please sign in to comment.