v0.3 release #4
Workflow file for this run
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
name: Release checks | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
myjob: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Verify version number | |
run: | | |
TAG="$(git describe --abbrev=0 --tags)" | |
VERSION="$(./bpt.sh -v)" | |
if [[ "$TAG" != "$VERSION" ]]; then | |
echo "ERROR: Version mismatch between Git tag ($TAG) and bpt ($VERSION)" | |
exit 1 | |
fi | |