fix(meeting): fix intermittently leaving meeting before even joining … #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dispatch new version event | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
dispatch-new-version-event: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Dispatch new version event | |
run: | | |
CURRENT_VERSION=$(node -p -e "require('./package.json').version") | |
git checkout HEAD~1 | |
PREVIOUS_VERSION=$(node -p -e "require('./package.json').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' \ | |
-u ${{ secrets.ACCESS_TOKEN }} \ | |
--data '{"event_type": "component-adapter-interfaces:version-changed", "client_payload": { "version": "'"${CURRENT_VERSION}"'"}' | |
fi |