From 22568aff1077f1eec68cdba45988464c3d86b07e Mon Sep 17 00:00:00 2001 From: Wietze Date: Wed, 2 Oct 2024 01:47:36 +0100 Subject: [PATCH] Updating workflow order, fixes #254 (#404) --- .github/workflows/gh-pages.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index c8c08b1..c9ce872 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,16 +1,15 @@ --- name: Update LOLBAS-Project.github.io on: - push: - branches: - - master - paths: - - "yml/**.yml" + workflow_run: + workflows: ["PUSH & PULL REQUEST - YAML Lint and Schema Validation Checks"] + types: [completed] + branches: [master] jobs: build: runs-on: ubuntu-latest - if: github.event.repository.fork == false + if: ${{ github.event.repository.fork == false && github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v2