diff --git a/.github/workflows/dispatch-new-version-event.yml b/.github/workflows/dispatch-new-version-event.yml index 5c9eb4192..2fc6b0c18 100644 --- a/.github/workflows/dispatch-new-version-event.yml +++ b/.github/workflows/dispatch-new-version-event.yml @@ -4,6 +4,8 @@ on: push: branches: - master + release: + types: [ published ] jobs: dispatch-new-version-event: runs-on: ubuntu-latest @@ -17,6 +19,9 @@ jobs: git checkout HEAD~1 PREVIOUS_VERSION=$(node -p -e "require('./package.json').version") + echo "Previous version: $PREVIOUS_VERSION" + echo "Current version: $CURRENT_VERSION" + if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then curl -X POST https://api.github.com/repos/webex/widgets/dispatches \ -H 'Accept: application/vnd.github.everest-preview+json' \