Skip to content

Commit

Permalink
Try triggering quic.video workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated committed Dec 12, 2024
1 parent 9ffd32f commit db4d3e6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Generate GitHub token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
Expand All @@ -29,3 +36,19 @@ jobs:
bun install
bun pack
bun publish
- name: Trigger quic.video update
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
VERSION=${GITHUB_REF#refs/tags/moq-web-v}
curl -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/kixelated/quic.video/actions/workflows/update.yml/dispatches \
-d "$(jq -n --arg version "$VERSION" '{
ref: "main",
inputs: {
npm_version: $version
}
}')"

0 comments on commit db4d3e6

Please sign in to comment.