Skip to content

Commit

Permalink
fix(workflow): dispatch new version also on new release event
Browse files Browse the repository at this point in the history
  • Loading branch information
maloun96 committed May 18, 2021
1 parent e5c3a00 commit b98ad4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/dispatch-new-version-event.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
release:
types: [ published ]
jobs:
dispatch-new-version-event:
runs-on: ubuntu-latest
Expand All @@ -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' \
Expand Down

0 comments on commit b98ad4f

Please sign in to comment.