Fix YAML syntax error in validate-release-assets workflow
The Python heredoc was not indented, causing YAML parsers to interpret the Python code as YAML syntax. This caused workflow_dispatch runs to fail instantly with 'workflow file issue' error before any jobs could start. The fix indents the heredoc content and changes delimiter from 'PY' to 'EOF' to match standard conventions.
This commit is contained in:
parent
9f7c9aea95
commit
5fa78c3e36
1 changed files with 31 additions and 31 deletions
|
|
@ -69,7 +69,7 @@ jobs:
|
||||||
INPUT_DRAFT: ${{ inputs.draft }}
|
INPUT_DRAFT: ${{ inputs.draft }}
|
||||||
INPUT_COMMIT: ${{ inputs.target_commitish }}
|
INPUT_COMMIT: ${{ inputs.target_commitish }}
|
||||||
run: |
|
run: |
|
||||||
python <<'PY' > context.env
|
python3 <<'EOF' > context.env
|
||||||
import json, os, sys
|
import json, os, sys
|
||||||
|
|
||||||
event_name = os.environ.get("EVENT_NAME", "")
|
event_name = os.environ.get("EVENT_NAME", "")
|
||||||
|
|
@ -104,7 +104,7 @@ result["should_run"] = should_run
|
||||||
|
|
||||||
for key, value in result.items():
|
for key, value in result.items():
|
||||||
print(f"{key}={value}")
|
print(f"{key}={value}")
|
||||||
PY
|
EOF
|
||||||
cat context.env >> "$GITHUB_OUTPUT"
|
cat context.env >> "$GITHUB_OUTPUT"
|
||||||
cat context.env
|
cat context.env
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue