Skip to content

Commit

Permalink
github: Add workflow to trigger website build on docs/ update
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquim Rocha <joaquim.rocha@microsoft.com>
  • Loading branch information
joaquimrocha committed Aug 16, 2024
1 parent 755ad7c commit a0d49d9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-website-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger Headlamp website update

# See https://github.com/headlamp-k8s/headlamp-website
on:
push:
paths:
- 'docs/**'
workflow_dispatch:

permissions:
contents: read

jobs:
trigger_flatpak_update:
name: Trigger Headlamp website update
runs-on: ubuntu-latest
steps:
- name: Trigger via gh
env:
GITHUB_TOKEN: ${{ secrets.KINVOLK_REPOS_TOKEN }}
run: |
gh api repos/flathub/io.kinvolk.Headlamp/dispatches --raw-field event_type=headlamp-docs-update

0 comments on commit a0d49d9

Please sign in to comment.