From dbca2dafb3d953bb4f39d16d70386264549050e1 Mon Sep 17 00:00:00 2001 From: Victor Malai Date: Tue, 18 May 2021 11:59:39 +0300 Subject: [PATCH] fix(workflow): dispatch new version also on new release event --- .github/workflows/dispatch-new-version-event.yml | 5 +++++ .github/workflows/update-dependencies.yml | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) 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' \ diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 28ce4223f..c69b75b00 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -9,8 +9,6 @@ jobs: steps: - name: checkout uses: actions/checkout@v2 - with: - persist-credentials: false - run: | npm install @webex/component-adapter-interfaces if [ -n "$(git status --porcelain)" ]; then