Bash Fixes in Release Action
Some checks failed
Some checks failed
This commit is contained in:
parent
f903bc0754
commit
c70ffecab6
1 changed files with 10 additions and 5 deletions
|
@ -19,10 +19,12 @@ jobs:
|
|||
-
|
||||
name: Check if Version in Cargo.toml matches Tag
|
||||
run: |
|
||||
VERSION=$(cat src-tauri/Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d=)
|
||||
if test $VERSION != "${{ github.ref_name }}"
|
||||
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"
|
||||
end
|
||||
VERSION=$(cat src-tauri/Cargo.toml | grep -E "(^|\|)version =" | cut -f2- -d= | tr -d \" | tr -d " ")
|
||||
if test $VERSION != "${{ github.ref_name }}"; then
|
||||
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
|
||||
else
|
||||
echo "Version is: '$VERSION'";
|
||||
fi
|
||||
|
||||
build-linux:
|
||||
needs: test
|
||||
|
@ -81,7 +83,10 @@ jobs:
|
|||
-
|
||||
name: Storing Debian Version for Upload Job
|
||||
id: store_deb_ver
|
||||
run: echo $VERSION_CODENAME >> $GITHUB_OUTPUT
|
||||
run: |
|
||||
env -i bash -c '. /etc/os-release; echo $VERSION_CODENAME'
|
||||
echo Debian Version is: $VERSION_CODENAME
|
||||
echo $VERSION_CODENAME >> $GITHUB_OUTPUT
|
||||
-
|
||||
name: Uploading Linux AppImage Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
Reference in a new issue