diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f322080..d90f2fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,27 +15,8 @@ env: MOD_PATH: ~/.vmodules/vibe jobs: - debounce: - runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ github.token }} - outputs: - abort: ${{ steps.debounce.outputs.abort }} - steps: - - name: Debounce - if: github.event_name == 'push' - id: debounce - run: | - 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." - echo "abort=true" >> "$GITHUB_OUTPUT" - fi - setup: runs-on: ubuntu-20.04 - needs: debounce - if: needs.debounce.outputs.abort != 'true' steps: - name: Install V uses: vlang/setup-v@v1.3 diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml index 777d0c5..d48f853 100644 --- a/.github/workflows/lint-docs.yml +++ b/.github/workflows/lint-docs.yml @@ -14,27 +14,8 @@ env: MOD_PATH: ~/.vmodules/vibe/ jobs: - debounce: - runs-on: ubuntu-latest - env: - GH_TOKEN: ${{ github.token }} - outputs: - abort: ${{ steps.debounce.outputs.abort }} - steps: - - name: Debounce - if: github.event_name == 'push' - id: debounce - run: | - 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." - echo "abort=true" >> "$GITHUB_OUTPUT" - fi - check-docs: runs-on: ubuntu-latest - needs: debounce - if: needs.debounce.outputs.abort != 'true' steps: - name: Restore Cache id: cache-status