Skip to content

Commit

Permalink
Update release number validation to use the build flags the same as w…
Browse files Browse the repository at this point in the history
…e would at compile time
  • Loading branch information
jeremypoulter committed Apr 1, 2023
1 parent 33b78a6 commit a2ce2fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ jobs:
### Check the version number in the code matches the tag number
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Retrieve the version number(s)
run: |
TAG_VERSION=$GITHUB_REF_NAME
CODE_VERSION=$(git describe --tags)
CODE_VERSION=$(python3 scripts/auto_fw_version.py | grep -E 'BUILD_TAG=([^ ]+)' -o | cut -d= -f2)
echo TAG_VERSION=$TAG_VERSION >> $GITHUB_ENV
echo CODE_VERSION=$CODE_VERSION >> $GITHUB_ENV
Expand Down

0 comments on commit a2ce2fd

Please sign in to comment.