File tree Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Expand file tree Collapse file tree 3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#approve-a-pull-request
2+ name : Dependabot auto-approve
3+ on : pull_request
4+
5+ permissions :
6+ pull-requests : write
7+
8+ jobs :
9+ dependabot :
10+ runs-on : ubuntu-latest
11+ if : github.actor == 'dependabot[bot]'
12+ steps :
13+ - name : Dependabot metadata
14+ id : metadata
15+ uses : dependabot/fetch-metadata@v2
16+ with :
17+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
18+ - name : Approve a PR
19+ run : gh pr review --approve "$PR_URL"
20+ env :
21+ PR_URL : ${{github.event.pull_request.html_url}}
22+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1+ name : " Test Nix Flake"
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+ jobs :
10+ nix :
11+ strategy :
12+ fail-fast : true
13+ matrix :
14+ os :
15+ - ubuntu-latest
16+ - ubuntu-24.04-arm
17+ - macos-latest
18+ name : Nix on ${{ matrix.os }}
19+ runs-on : ${{ matrix.os }}
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : cachix/install-nix-action@v31
23+ with :
24+ extra_nix_config : |
25+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hackage-server.cachix.org-1:iw0iRh6+gsFIrxROFaAt5gKNgIHejKjIfyRdbpPYevY=
26+ substituters = https://cache.nixos.org/ https://hackage-server.cachix.org/
27+ - uses : cachix/cachix-action@v16
28+ with :
29+ # https://nix.dev/tutorials/continuous-integration-github-actions#setting-up-github-actions
30+ name : hackage-server
31+ authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
32+
33+ - name : " Check `nix develop` shell"
34+ run : nix develop --check
35+
36+ - name : " Check `nix develop` shell can run command"
37+ run : nix develop --command "echo"
38+
39+ - run : nix build
40+
41+ - continue-on-error : false
42+ run : nix flake check
Original file line number Diff line number Diff line change 1+ # https://github.com/DeterminateSystems/update-flake-lock
2+ name : update-flake-lock
3+ on :
4+ workflow_dispatch : # allows manual triggering
5+ schedule :
6+ - cron : ' 0 0 1 * *' # runs on first day of the month
7+
8+ jobs :
9+ lockfile :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+ - name : Install Nix
15+ uses : DeterminateSystems/nix-installer-action@main
16+ - name : Update flake.lock
17+ uses : DeterminateSystems/update-flake-lock@main
18+ with :
19+ pr-title : " Update flake.lock" # Title of PR to be created
20+ pr-labels : | # Labels to be set on the PR
21+ dependencies
22+ automated
You can’t perform that action at this time.
0 commit comments