Skip to content

Commit a8ac5f3

Browse files
committed
Fix how the draft release is created in release.yaml
1 parent 1a9800a commit a8ac5f3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,21 @@ jobs:
156156
ref: ${{ github.event.inputs.commit_sha }}
157157

158158
- name: Download all artifacts
159-
uses: actions/download-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
159+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
160160
with:
161161
path: artifacts
162162

163163
- name: Create Release
164164
env:
165165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166166
run: |
167-
RELEASE_TAG="v0.158.0"
168-
RELEASE_NAME="Release v0.158.0"
167+
set -ex
168+
169+
VERSION=$(grep '^version = ' source/rust/autonomy_command/Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
170+
RELEASE_TAG="v$VERSION"
171+
RELEASE_NAME="Release v$VERSION"
169172
COMMIT_SHA="${{ github.event.inputs.commit_sha || github.sha }}"
170-
RELEASE_BODY="Release v0.158.0"
173+
RELEASE_BODY="Release v$VERSION"
171174
172175
gh release create "$RELEASE_TAG" \
173176
--title "$RELEASE_NAME" \

0 commit comments

Comments
 (0)