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 3998253 commit dbca2da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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
2 changes: 0 additions & 2 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbca2da

Please sign in to comment.