mirror of
https://github.com/RROrg/rr.git
synced 2025-08-23 13:07:15 +08:00
修复输出值的转义问题
This commit is contained in:
parent
ac588eff6c
commit
f90478e426
4
.github/workflows/issues.yml
vendored
4
.github/workflows/issues.yml
vendored
@ -29,7 +29,9 @@ jobs:
|
||||
# -*- coding: utf-8 -*-
|
||||
import json, subprocess
|
||||
def set_output(name, value):
|
||||
subprocess.call(["echo '{}={}' >> $GITHUB_ENV".format(name, value)], shell=True)
|
||||
subprocess.call(f'echo "{name}<<EOF" >> $GITHUB_ENV', shell=True)
|
||||
subprocess.call(f'echo "{value}" >> $GITHUB_ENV', shell=True)
|
||||
subprocess.call(f'echo "EOF" >> $GITHUB_ENV', shell=True)
|
||||
|
||||
issuetitle = ${{ toJSON(github.event.issue.title) }}
|
||||
issuebody = ${{ toJSON(github.event.issue.body) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user