forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically create release tags via GitHub actions
Release tags are now created automatically when including an indicator (see updated documentation) in the commit message. For now: keep automated release tagging in dry-run mode (we should first make sure this actually works on this repository before enabling it in production).
- Loading branch information
1 parent
6752c40
commit 0dce756
Showing
2 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create release tag | ||
on: | ||
push: | ||
branches: [ develop ] | ||
paths: | ||
- 'src/config.inc' | ||
|
||
jobs: | ||
create-tag: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Get version | ||
run: | | ||
v=$(grep ^CBMC_VERSION src/config.inc | perl -p -e 's/^CBMC_VERSION\s*=\s*//') | ||
echo "CBMC_VERSION=$v" >> $GITHUB_ENV | ||
- name: Set new tag | ||
uses: anothrNick/github-tag-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_BRANCHES: develop | ||
CUSTOM_TAG: cbmc-${{ env.CBMC_VERSION }} | ||
VERBOSE: false | ||
DRY_RUN: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters