From a6755dc895b6426bca96b5f6a3ca52af5c090754 Mon Sep 17 00:00:00 2001 From: Daniel Rosehill Date: Thu, 21 Nov 2024 21:06:02 +0200 Subject: [PATCH] updatd workflow --- .github/workflows/notify-main-repo.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/notify-main-repo.yml b/.github/workflows/notify-main-repo.yml index 52e4678..9a41f49 100644 --- a/.github/workflows/notify-main-repo.yml +++ b/.github/workflows/notify-main-repo.yml @@ -1,19 +1,13 @@ -name: Notify Main Repository +name: Trigger Netlify Build on: push: branches: - - main + - main jobs: - notify-main-repo: + notify-netlify: runs-on: ubuntu-latest - steps: - - name: Notify Main Repository - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.PAT }} # Personal Access Token with repo access - repository: danielrosehill/Documetation-Root-Repo - event-type: update-submodule - client-payload: '{"submodule": "${{ github.repository }}"}' \ No newline at end of file + - name: Trigger Netlify Build Hook + run: curl -X POST -d '{}' ${{ secrets.NETLIFY_BUILD_HOOK_URL }} \ No newline at end of file