We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a632c0 + 029cb49 commit 27ad05cCopy full SHA for 27ad05c
.github/workflows/release-cli.yaml
@@ -12,6 +12,18 @@ jobs:
12
steps:
13
- name: Checkout code
14
uses: actions/checkout@v2
15
+ - name: Read CLI version
16
+ uses: SebRollen/[email protected]
17
+ id: read_cli_version
18
+ with:
19
+ file: './cli/Cargo.toml'
20
+ field: 'package.version'
21
+ - name: Check Release Version is Same as CLI Version
22
+ if: ${{ !endsWith(github.ref, steps.read_cli_version.outputs.value) }}
23
+ run: |
24
+ echo "Tag version ${{ github.ref }} doesn't match Cargo.toml version ${{ steps.read_cli_version.outputs.value }}";
25
+ echo "Did you forget to update version in Cargo.toml?"
26
+ exit 1
27
- name: Create Release
28
id: create_release
29
uses: actions/create-release@v1
0 commit comments