Skip to content

Commit d81e53f

Browse files
authored
ci(cd): fix json file name
1 parent c92551d commit d81e53f

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/check-version.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff 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:
@@ -73,4 +67,4 @@ jobs:
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}}}}'

0 commit comments

Comments
 (0)