summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/checkandformat.yml5
1 files changed, 1 insertions, 4 deletions
diff --git a/.github/workflows/checkandformat.yml b/.github/workflows/checkandformat.yml
index 8bd9a83..b8f17ec 100644
--- a/.github/workflows/checkandformat.yml
+++ b/.github/workflows/checkandformat.yml
@@ -24,13 +24,10 @@ jobs:
export NIXPKGS_ALLOW_BROKEN=1
nix flake check --impure
format:
- if: ${{ github.event_name != 'pull_request' }}
+ if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- with:
- repository: ${{ github.event.pull_request.head.repo.full_name }}
- ref: ${{ github.event.pull_request.head.ref }}
- uses: cachix/install-nix-action@v19
with: