File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed
Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,15 @@ jobs:
4444 id : extract_version
4545 run : |
4646 VERSION=$(grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+' release.log || echo "unknown")
47- echo "VERSION=$VERSION" >> $GITHUB_ENV
4847 echo "Extracted version: $VERSION"
49-
50- - name : Create JSON file
51- run : |
52- cat <<EOF > $JSON_FILE
53- {
54- "schemaVersion": 1,
55- "label": "next version",
56- "message": "${VERSION}",
57- "color": "blue"
58- }
59- EOF
60- env :
61- VERSION : ${{ env.VERSION }}
48+ cat <<EOF > $JSON_FILE
49+ {
50+ "schemaVersion": 1,
51+ "label": "next version",
52+ "message": "${VERSION}",
53+ "color": "blue"
54+ }
55+ EOF
6256
6357 - name : Update Gist with badge
6458 env :
7367 -H "Authorization: Bearer ${GIST_TOKEN}" \
7468 -H "X-GitHub-Api-Version: 2022-11-28" \
7569 https://api.github.com/gists/${GIST_ID} \
76- -d '{"files":{"$ JSON_FILE" :{"content":"$ JSON_CONTENT" }}}'
70+ -d '{"files":{${ JSON_FILE} :{"content":${ JSON_CONTENT} }}}'
You can’t perform that action at this time.
0 commit comments