File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -156,18 +156,21 @@ jobs:
156
156
ref : ${{ github.event.inputs.commit_sha }}
157
157
158
158
- name : Download all artifacts
159
- uses : actions/download-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
159
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
160
160
with :
161
161
path : artifacts
162
162
163
163
- name : Create Release
164
164
env :
165
165
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
166
166
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"
169
172
COMMIT_SHA="${{ github.event.inputs.commit_sha || github.sha }}"
170
- RELEASE_BODY="Release v0.158.0 "
173
+ RELEASE_BODY="Release v$VERSION "
171
174
172
175
gh release create "$RELEASE_TAG" \
173
176
--title "$RELEASE_NAME" \
You can’t perform that action at this time.
0 commit comments