Skip to content

Commit 511bd2e

Browse files
author
kaixuanxu
committed
chore: fix sec, remove key
1 parent 18f3592 commit 511bd2e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/actions/validate-template/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@ runs:
3838
# Parse JSON and extract status and detail separately
3939
status=$(echo "$result" | jq -r '.status')
4040
detail=$(echo "$result" | jq -r '.detail')
41+
# Output status
4142
echo "status=${status}" >> "$GITHUB_OUTPUT"
42-
echo "detail=${detail}" >> "$GITHUB_OUTPUT"
43+
# Use multiline format for detail since it contains newlines
44+
echo "detail<<EOF" >> "$GITHUB_OUTPUT"
45+
echo "$detail" >> "$GITHUB_OUTPUT"
46+
echo "EOF" >> "$GITHUB_OUTPUT"

.github/workflows/validate-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id: validate-template
1818
uses: ./.github/actions/validate-template
1919
with:
20-
path: $GITHUB_WORKSPACE
20+
path: ${{ github.workspace }}
2121

2222
- name: Create comment
2323
if: ${{ steps.validate-template.outputs.status != 0 && !github.event.pull_request.head.repo.fork }}

0 commit comments

Comments
 (0)