Skip to content

Commit 2bffaaf

Browse files
committed
Keep automated release tagging in dry-run mode
We should first make sure this actually works on this repository before enabling it in production.
1 parent ba90749 commit 2bffaaf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/create-release-tag.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ jobs:
1010
- uses: actions/checkout@v2
1111
with:
1212
fetch-depth: '0'
13+
- name: Compute new tag
14+
uses: anothrNick/[email protected]
15+
id: dry_run
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
DEFAULT_BUMP: none
19+
RELEASE_BRANCHES: develop
20+
VERBOSE: false
21+
DRY_RUN: true
22+
- if: ${{ steps.dry_run.new_tag != "" }}
23+
run: |
24+
v=$(grep ^CBMC_VERSION src/config.inc | perl -p -e 's/^CBMC_VERSION\s*=\s*//')
25+
echo "CBMC_VERSION: $v"
26+
echo "New tag: ${{ steps.dry_run.new_tag }}"
27+
test "cbmc-$v" == ${{ steps.dry_run.new_tag }}
1328
- name: Bump version and push tag
1429
uses: anothrNick/[email protected]
1530
env:

0 commit comments

Comments
 (0)