diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 02e32b8..99e15de 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,15 +19,18 @@ env: jobs: debounce: runs-on: ubuntu-latest + if: github.ref_name != '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."