Skip to content

Commit b98ad4f

Browse files
committed
fix(workflow): dispatch new version also on new release event
1 parent e5c3a00 commit b98ad4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/dispatch-new-version-event.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
release:
8+
types: [ published ]
79
jobs:
810
dispatch-new-version-event:
911
runs-on: ubuntu-latest
@@ -17,6 +19,9 @@ jobs:
1719
git checkout HEAD~1
1820
PREVIOUS_VERSION=$(node -p -e "require('./package.json').version")
1921
22+
echo "Previous version: $PREVIOUS_VERSION"
23+
echo "Current version: $CURRENT_VERSION"
24+
2025
if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then
2126
curl -X POST https://api.github.com/repos/webex/widgets/dispatches \
2227
-H 'Accept: application/vnd.github.everest-preview+json' \

0 commit comments

Comments
 (0)