Skip to content

Commit a355a20

Browse files
authored
fix(cd): write-out tag/commit
1 parent 194a28a commit a355a20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ jobs:
101101
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
102102
cd ./src/http-server
103103
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
104-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV
104+
echo "CRATE_VERSION=$(cargo tag --dry-run -p=v ${{ inputs.version }})" >> $GITHUB_ENV
105105
else
106-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
106+
echo "CRATE_VERSION=$(cargo tag --dry-run -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
107107
fi
108108
109109
- name: Build binary
@@ -159,9 +159,9 @@ jobs:
159159
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
160160
cd ./src/http-server
161161
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
162-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV
162+
echo "CRATE_VERSION=$(cargo tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV
163163
else
164-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
164+
echo "CRATE_VERSION=$(cargo tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
165165
fi
166166
git push origin main --follow-tags
167167

0 commit comments

Comments
 (0)