Skip to content

Commit 32c1085

Browse files
committed
add check for library.properties version mismatch
1 parent 90f6a59 commit 32c1085

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/driver.common.github_release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,21 @@ on:
99
default: ""
1010

1111
jobs:
12+
check-properties-version:
13+
name: Check library properties version
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: |
18+
PROP_VERSION=grep "version" library.properties | cut -d'=' -f2
19+
if [ "${{ github.ref_name }}" != "$PROP_VERSION" ]; then
20+
echo "::error::Version mismatch! library.properties version $PROP_VERSION does not match tag ${{ github.ref_name }}"
21+
exit 1
22+
fi
23+
1224
create-github-release:
1325
runs-on: ubuntu-latest
26+
needs: check-properties
1427
permissions:
1528
contents: write
1629
steps:

0 commit comments

Comments
 (0)