Skip to content

Commit 8f904c4

Browse files
committed
Bump the version number
1 parent ce4657d commit 8f904c4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/update-ca-file.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,22 @@ jobs:
4747
run: |
4848
LATEST_VERSION=$(curl --silent "https://api.github.com/repos/${{ github.repository }}/releases/latest" \
4949
| jq -r .tag_name)
50-
echo "::set-output name=version::${LATEST_VERSION}"
5150
env:
5251
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5352

53+
- name: Bump the patch version
54+
id: bump
55+
run: |
56+
NEW_VERSION=$(echo "${{ steps.latestrelease.outputs.version }}" | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')
57+
echo "::set-output name=version::${NEW_VERSION}"
58+
5459
- name: Create a new release
5560
id: create_release
5661
uses: actions/create-release@v1
5762
with:
58-
tag_name: ${{ steps.latestrelease.outputs.version }}
59-
release_name: Release ${{ steps.latestrelease.outputs.version }}
60-
draft: false
63+
tag_name: v${{ steps.latestrelease.outputs.version }}
64+
release_name: v${{ steps.latestrelease.outputs.version }}
65+
draft: true
6166
prerelease: false
6267
env:
6368
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)