GitHub Actions: Update release-check

- Remove branch definition
- Fix awk command to match the version in edge in the Snap Store

Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
This commit is contained in:
Daniel Llewellyn
2020-04-21 11:20:07 +01:00
parent f1815dbdfb
commit eccbcce26d

View File

@@ -16,13 +16,12 @@ jobs:
| grep -E 'http://www.makemkv.com/download/makemkv-bin-[0-9]+\.[0-9]+\.[0-9]+\.tar\.gz' \
| head -n1 \
| sed -E -e 's|^.*\"http://www.makemkv.com/download/makemkv-bin-([0-9]+\.[0-9]+\.[0-9]+)\.tar\.gz\".*|\1|')"
EDGEVER="$(snap info makemkv | awk '$1 == "edge:" { print $2 }')"
EDGEVER="$(snap info makemkv | awk '$1 == "latest/edge:" { print $2 }')"
if [ "$VERSION" != "$EDGEVER" ]; then
echo "$(date -u --rfc-3339=seconds) Version $VERSION" >> .build.stamp
fi
- uses: stefanzweifel/git-auto-commit-action@v2.1.0
with:
commit_message: Trigger build for new version
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}