Skip to content

Commit

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

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit d24c433)
  • Loading branch information
lobkovilya authored and mergify[bot] committed Jan 31, 2023
1 parent c7f3122 commit ade4947
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 ade4947

Please sign in to comment.