ci(wasm): also publish on tag push
This commit is contained in:
parent
19a2d5c57c
commit
ad14c26597
|
|
@ -139,10 +139,16 @@ jobs:
|
|||
|
||||
- name: Check if VERSION changed
|
||||
id: version_changed
|
||||
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event_name == 'push'
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
if git diff --name-only HEAD~1 HEAD 2>/dev/null | grep -q '^VERSION$'; then
|
||||
if echo "${{ github.ref }}" | grep -q '^refs/tags/'; then
|
||||
echo "changed=true" >> $GITHUB_OUTPUT
|
||||
elif [ "${{ github.ref }}" = "refs/heads/${{ github.event.repository.default_branch }}" ]; then
|
||||
if git diff --name-only HEAD~1 HEAD 2>/dev/null | grep -q '^VERSION$'; then
|
||||
echo "changed=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "changed=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
else
|
||||
echo "changed=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue