@@ -1,33 +0,0 @@
1−name: Update
2−
3−on:
4− pull_request:
5− branches: master
6−
7−jobs:
8− build:
9− runs-on: ubuntu-latest
10− steps:
11− - uses: actions/checkout@v2
12− with:
13− ref: ${{ github.event.pull_request.head.sha }}
14−
15− - uses: cachix/install-nix-action@v12
16− with:
17− nix_path: nixpkgs=channel:nixos-20.09
18−
19− - name: Generate packages.json file from the package set
20− id: generate-packages
21− run: |
22− nix-shell --run 'make generate'
23− echo ::set-output name=modified::$(if git diff --quiet; then echo "false"; else echo "true"; fi)
24−
25− - name: Commit and push modified files
26− if: steps.generate-packages.outputs.modified == 'true'
27− run: |
28− git config user.name github-actions
29− git config user.email github-actions@github.com
30−
31− git pull --ff-only
32− git commit -am "Update packages.json file"
33− git push