Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Add check-version to branch workflow (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmattgray authored Mar 30, 2022
1 parent 72a64f2 commit 01b64c4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/react-lint-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,22 @@ jobs:
run: |
echo "Tags: $TAGS"
env:
TAGS: ${{ github.event.inputs.tags }}
TAGS: ${{ github.event.inputs.tags }}

check-version:
name: 'Check version'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: git fetch --depth=1 --tags origin
- name: Install yq
run: sudo snap install yq
- name: Check Build Version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Error if version is not increased
shell: bash
run: |
exit $([[ "${{steps.get_version.outputs.IS_NEW_VERSION}}" = "true" ]] && echo 0 || echo 1)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "veritable-verifier",
"version": "0.2.3",
"version": "0.2.4",
"description": "Front-end for Veritable verifiers",
"author": "Digital Catapult (https://www.digicatapult.org.uk/)",
"license": "Apache-2.0",
Expand Down

0 comments on commit 01b64c4

Please sign in to comment.