From b98ad4fa4d549a787b2c626b528853afe5da6c51 Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Tue, 18 May 2021 15:47:19 +0300 Subject: [PATCH] fix(workflow): dispatch new version also on new release event --- .github/workflows/dispatch-new-version-event.yml | 5 +++++ 1 file changed, 5 insertions(+) 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' \