Skip to content

Commit 9b16096

Browse files
authored
ci(cd): simplify workflow file
1 parent 248e025 commit 9b16096

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/check-version.yml

Lines changed: 8 additions & 14 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
47+
cat <<EOF > $JSON_FILE
48+
{
49+
"schemaVersion": 1,
50+
"label": "next version",
51+
"message": "$VERSION",
52+
"color": "blue"
53+
}
54+
EOF
4855
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 }}
6256
6357
- name: Update Gist with badge
6458
env:

0 commit comments

Comments
 (0)