From bb057765034c9fa8b93d92218d2b0a2686e680de Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 6 Mar 2023 09:43:13 -0500 Subject: fix(actions): format on push --- .github/workflows/checkandformat.yml | 5 +---- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3