Skip to content

Commit 5d2a378

Browse files
Merge pull request #446 from dekusms/dev
Update workflow to handle multiline output from version bump
2 parents 6f0158f + eeb5c60 commit 5d2a378

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/staging-version-bump.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ jobs:
4141
- name: Run bump_version.py
4242
id: bump
4343
run: |
44-
output=$(python bump_version.py ${{ steps.previoustag.outputs.tag }} ${{ steps.branch.outputs.name }}")
45-
echo "result=$output" >> $GITHUB_OUTPUT
44+
python bump_version.py \
45+
"${{ steps.previoustag.outputs.tag }}" \
46+
"${{ steps.branch.outputs.name }}" \
47+
> version.properties
48+
# Store multiline output as a GitHub output using EOF delimiter
49+
echo "result<<EOF" >> $GITHUB_OUTPUT
50+
cat version.properties >> $GITHUB_OUTPUT
51+
echo "EOF" >> $GITHUB_OUTPUT
4652
4753
- name: Write version.properties
4854
run: echo "${{ steps.bump.outputs.result }}" > version.properties

0 commit comments

Comments
 (0)