Fixed check tag script
All checks were successful
/ astro-check (push) Successful in 15s

This commit is contained in:
Firq 2024-07-25 23:26:35 +02:00
parent e28c7e066d
commit 73609d03c0
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ jobs:
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Check if Version in package.json matches Tag - name: Check if Version in package.json matches Tag
run: | run: |
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " ) VERSION=$(npm pkg get version --workspaces=false | tr -d \")
if test $VERSION != "${{ github.ref_name }}"; then if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1 exit 1

View file

@ -11,7 +11,7 @@ jobs:
uses: https://code.forgejo.org/actions/checkout@v3 uses: https://code.forgejo.org/actions/checkout@v3
- name: Check if Version in package.json matches Tag - name: Check if Version in package.json matches Tag
run: | run: |
VERSION=$(cat package.json | grep "version" | sed 's/.*://' | tr -d , | tr -d \" | tr -d " " ) VERSION=$(npm pkg get version --workspaces=false | tr -d \")
if test $VERSION != "${{ github.ref_name }}"; then if test $VERSION != "${{ github.ref_name }}"; then
echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'"; echo "Expected Version is: '${{ github.ref_name }}' actual Version is: '$VERSION'";
exit 1 exit 1