summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/checkandformat.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/checkandformat.yml b/.github/workflows/checkandformat.yml
index 2856163..aa02d1c 100644
--- a/.github/workflows/checkandformat.yml
+++ b/.github/workflows/checkandformat.yml
@@ -17,10 +17,10 @@ jobs:
- run: nix flake check
format:
+ if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- if: ${{ github.event_name == 'pull_request' }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}