Skip to content

ci: exclude some workflows from forks/branches & better scope permissions #23

ci: exclude some workflows from forks/branches & better scope permissions

ci: exclude some workflows from forks/branches & better scope permissions #23

Workflow file for this run

name: Format
on:
push:
branches: [main]
pull_request:
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v20
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run formatter
run: nix fmt
- name: Check for changes
run: git diff --color=always --exit-code