mirror of
https://github.com/RROrg/rr.git
synced 2025-12-11 06:29:43 +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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import json, subprocess
|
import json, subprocess
|
||||||
def set_output(name, value):
|
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) }}
|
issuetitle = ${{ toJSON(github.event.issue.title) }}
|
||||||
issuebody = ${{ toJSON(github.event.issue.body) }}
|
issuebody = ${{ toJSON(github.event.issue.body) }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user