From e29090f83553f2d2292d5ec4720a85ca3fc58a77 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Tue, 24 Oct 2023 13:55:56 +0200 Subject: [PATCH] ci: fix debounce on push to main --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02e32b8..aa81c13 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,15 +19,18 @@ env: jobs: debounce: runs-on: ubuntu-latest + if: github.event.ref != 'refs/heads/debouce-fix' && github.event_name == 'push' env: GH_TOKEN: ${{ github.token }} outputs: abort: ${{ steps.debounce.outputs.abort }} steps: - name: Debounce - if: github.ref_name != 'main' && github.event_name == 'push' id: debounce run: | + echo $GITHUB_REF_NAME + echo $GITHUB_EVENT_NAME + printenv pr_branches=$(gh pr list --json headRefName --repo $GITHUB_REPOSITORY) if [[ $(echo "$pr_branches" | jq -r --arg GITHUB_REF '.[].headRefName | select(. == $GITHUB_REF)') ]]; then echo "This push is associated with a pull request. Skipping the job."