Skip to content

Commit

Permalink
ci: notify 100ms-links on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Feb 28, 2024
1 parent b5ea0d8 commit c75089c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "publishFlag": "alpha" }'


# Delay to wait for the publish to finish
- name: Delay for 2 minutes
run: sleep 120

notify_100ms_links:
runs-on: ubuntu-latest
needs: run_publish_packages
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: 100mslive/100ms-links
event-type: alpha-publish
client-payload: '{"bump": "alpha"}'

17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
PUBLISH_FLAG: ${{ github.event.inputs.publishFlag || github.event.client_payload.slash_command.args.unnamed.arg1 || 'alpha' }}

- name: Delay for 2 minutes
run: sleep 120

- name: Notify slack success
if: github.event.inputs.publishFlag == 'latest' && success()
env:
Expand All @@ -85,3 +88,17 @@ jobs:
channel_id: ${{ secrets.SLACK_DEPLOY_PROD_CHANNEL_ID }}
status: Failed
color: danger

notify_100ms_links:
runs-on: ubuntu-latest
needs: publish_packages
steps:
- name: Repository Dispatch
if: success()
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
repository: 100mslive/100ms-links
event-type: alpha-publish
client-payload: '{"bump": "${{ github.event.inputs.publishFlag }}"}'

0 comments on commit c75089c

Please sign in to comment.