Skip to content

Commit

Permalink
feat: trigger doc indexing on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Oct 2, 2024
1 parent 8164421 commit fa7638c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Index doc on tag

on:
push:
tags:
- v*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
index-doc:
name: Index doc
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Doc indexing webhook for tag
id: trigger-index
run: |
TAG=${GITHUB_REF#refs/*/}
curl -X POST -H "Content-Type: application/json" -d "{\"tag\": \"$TAG\"}" https://us.kestra.cloud/api/v1/kestra-tech/executions/webhook/product/doc-to-storage/${{ secrets.DOC_INDEXING_WEBHOOK }}

0 comments on commit fa7638c

Please sign in to comment.