Skip to content

Commit

Permalink
trigger rebuilds on Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Apr 3, 2024
1 parent e87fb34 commit e43d890
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rebuild-docs-sites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Rebuild Docs Sites

on:
push:
branches: [main]
paths:
- 'docs/src/_data/versions.json'

jobs:
rebuild:
name: 'Trigger rebuild on Netlify'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: >
jq -r '.items | map(.branch) | join(",")' docs/src/_data/versions.json
| xargs -I{LIST} curl -X POST -d {} "${{ secrets.NETLIFY_DOCS_BUILD_HOOK }}?trigger_branch={{LIST}}"

0 comments on commit e43d890

Please sign in to comment.