We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af96184 commit 6ed5142Copy full SHA for 6ed5142
1 file changed
actions/docker/get-image-metadata/action.yml
@@ -115,9 +115,9 @@ runs:
115
const shortCommitSha = stdout.trim();
116
core.debug("shortCommitSha: " + shortCommitSha);
117
118
- const commitShaMatcher = /(pr-${{ steps.get-issue-number.outputs.issue-number }}-)([0-9a-f]{7,40})(-)/;
+ const commitShaMatcher = /(pr-${{ steps.get-issue-number.outputs.issue-number }}-)([0-9a-f]{7,40})/;
119
const fixedTags = tags.split("\n").map(tag => {
120
- return tag.replace(commitShaMatcher, "$1"+shortCommitSha+"$3");
+ return tag.replace(commitShaMatcher, "$1"+shortCommitSha);
121
}).join("\n");
122
123
core.setOutput('tags', fixedTags);
0 commit comments