Skip to content

Commit

Permalink
DSP-24393 Reads pull-request title from object
Browse files Browse the repository at this point in the history
Reads pull-request title from `context` object which is guaranteed to
be a string instead of using templating which causes expression
evaluation.
  • Loading branch information
tiagomlalves committed Aug 8, 2024
1 parent 0dfe576 commit b37c406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-auto-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
* Automatically create tags when Release Notes PRs are merged
*/
const pr_title = "${{ github.event.pull_request.title }}";
const pr_title = context.payload.pull_request.title;
const match = pr_title.match(/^(DSE|OpsCenter|Studio|Luna Streaming)[ ]+(\d+\.\d+\.\d+(\.\d+)?)[ ]+release/i);
if (!match) {
core.warning("Auto tagging skipped as PR title doesn't match release notes regex.")
Expand Down

0 comments on commit b37c406

Please sign in to comment.