Skip to content

Commit f0bee02

Browse files
committed
trigger jit cdn update when releasing a new version
1 parent 4cf382d commit f0bee02

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,3 +427,16 @@ jobs:
427427
version: '${{ env.TAILWINDCSS_VERSION }}'
428428
}
429429
})
430+
431+
- name: Trigger CDN Update
432+
if: env.RELEASE_CHANNEL == 'latest'
433+
uses: actions/github-script@v6
434+
with:
435+
github-token: ${{ secrets.CDN_TOKEN }}
436+
script: |
437+
await github.rest.actions.createWorkflowDispatch({
438+
owner: 'tailwindlabs',
439+
repo: 'jit-cdn',
440+
ref: 'main',
441+
workflow_id: 'update-versions.yml',
442+
})

0 commit comments

Comments
 (0)