Skip to content

Commit 4db56bd

Browse files
authored
Merge pull request #10 from direct-actions/dev
fix key embedding
2 parents 6a3cf71 + f39994a commit 4db56bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ runs:
8282
steps:
8383
- env:
8484
CLASSIFIER: ${{ inputs.classifier }}
85-
COMMENT: '<!--direct-actions/pr-comment:key:${{ inputs.key }}-->${{ inputs.comment }}'
85+
COMMENT: ${{ inputs.comment }}
86+
COMMENT_KEY: ${{ inputs.key }}
8687
GITHUB_TOKEN: ${{ inputs.token }}
8788
OPERATION: ${{ inputs.operation }}
8889
PULL_REQUEST: ${{ inputs.pull-request }}
@@ -98,6 +99,7 @@ runs:
9899
99100
ALL_COMMENTS=$(mktemp)
100101
CLASSIFIER="$(tr '[a-z]' '[A-Z]' <<< "$CLASSIFIER")"
102+
COMMENT='<!--direct-actions/pr-comment:key:'"${COMMENT_KEY}-->"$'\n'"${COMMENT}"
101103
COMMENTS=$(mktemp)
102104
ERROR=$(mktemp)
103105

0 commit comments

Comments
 (0)