Skip to content

Commit 733d657

Browse files
Fix YAML formatting in release workflow
- Fix long lines by adding proper line breaks - Add missing newline at end of file - Improve readability while maintaining functionality
1 parent 3b9cac5 commit 733d657

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919

2020
- name: Resolve versions
2121
run: |
22-
echo "version=$(git describe --tags --match "v[0-9]*" HEAD)" >> $GITHUB_ENV
22+
echo "version=$(git describe --tags --match "v[0-9]*" HEAD)" \
23+
>> $GITHUB_ENV
2324
echo "revision=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
2425
2526
- name: Set up Docker Buildx
@@ -41,7 +42,8 @@ jobs:
4142
build-args: |
4243
VERSION=${{ env.version }}
4344
REVISION=${{ env.revision }}
44-
load: true # load image to local registry to use it in next steps
45+
# load image to local registry to use it in next steps
46+
load: true
4547
cache-from: type=local,src=/tmp/.buildx-cache
4648
cache-to: type=local,dest=/tmp/.buildx-cache-new
4749
context: .
@@ -69,7 +71,8 @@ jobs:
6971
id: release_notes
7072
run: |
7173
# Get the previous tag for release notes
72-
PREV_TAG=$(git describe --tags --abbrev=0 --match "v[0-9]*" HEAD^ 2>/dev/null || echo "")
74+
PREV_TAG=$(git describe --tags --abbrev=0 --match "v[0-9]*" \
75+
HEAD^ 2>/dev/null || echo "")
7376
7477
# Create release notes
7578
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
@@ -78,15 +81,19 @@ jobs:
7881
echo "Built from commit: ${{ env.revision }}" >> $GITHUB_OUTPUT
7982
echo "" >> $GITHUB_OUTPUT
8083
echo "### Downloads" >> $GITHUB_OUTPUT
81-
echo "- **Linux AMD64**: \`keep-client-mainnet-${{ env.version }}-linux-amd64.tar.gz\`" >> $GITHUB_OUTPUT
82-
echo "- **macOS AMD64**: \`keep-client-mainnet-${{ env.version }}-darwin-amd64.tar.gz\`" >> $GITHUB_OUTPUT
84+
echo "- **Linux AMD64**: \`keep-client-mainnet-${{ env.version }}-linux-amd64.tar.gz\`" \
85+
>> $GITHUB_OUTPUT
86+
echo "- **macOS AMD64**: \`keep-client-mainnet-${{ env.version }}-darwin-amd64.tar.gz\`" \
87+
>> $GITHUB_OUTPUT
8388
echo "" >> $GITHUB_OUTPUT
8489
echo "### Verification" >> $GITHUB_OUTPUT
85-
echo "All binaries include MD5 and SHA256 checksums for verification." >> $GITHUB_OUTPUT
90+
echo "All binaries include MD5 and SHA256 checksums for verification." \
91+
>> $GITHUB_OUTPUT
8692
echo "" >> $GITHUB_OUTPUT
8793
if [ -n "$PREV_TAG" ]; then
8894
echo "### Changes since $PREV_TAG" >> $GITHUB_OUTPUT
89-
git log --oneline --no-merges "$PREV_TAG..HEAD" | head -20 >> $GITHUB_OUTPUT
95+
git log --oneline --no-merges "$PREV_TAG..HEAD" | head -20 \
96+
>> $GITHUB_OUTPUT
9097
fi
9198
echo "EOF" >> $GITHUB_OUTPUT
9299
@@ -106,4 +113,4 @@ jobs:
106113
- name: Move cache
107114
run: |
108115
rm -rf /tmp/.buildx-cache
109-
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
116+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

0 commit comments

Comments
 (0)