Skip to content

Commit

Permalink
workflow syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro100 committed Apr 10, 2024
1 parent c1f2ee9 commit a6963e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ jobs:
- name: Get current local version
id: get_current_local_version
run: |
VERSION=$(cat package.json \
echo "VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
| sed 's/[",]//g')" >> $GITHUB_OUTPUT
echo $VERSION
- name: Check if version changed
env:
CURRENT_VERSION: ${{ steps.get_current_published_version.outputs.VERSION }}
LOCAL_VERSION: ${{ steps.get_current_local_version.outputs.VERSION }}
run: |
if [ "${CURRENT_VERSION}" != "${ LOCAL_VERSION }" ]; then
if [ "$CURRENT_VERSION" != "$LOCAL_VERSION" ]; then
echo "Version changed from $CURRENT_VERSION }} to $LOCAL_VERSION"
else
echo "Version did not change"
Expand Down

0 comments on commit a6963e1

Please sign in to comment.