Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Sep 14, 2023
1 parent 9a9dd7f commit c130df4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
inputs:
pkg: { required: true, type: string }
jobs:
check:
upgrade:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -16,27 +16,10 @@ jobs:
- run: |
nix-shell ./update-shell.nix --run './update.py check -A ${{inputs.pkg}}'
do-upgrade:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with: { nix_path: 'nixpkgs=channel:nixos-unstable' }
- uses: cachix/cachix-action@v12
with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' }

- run: nix-build ./update-shell.nix
- run: |
git config user.name 'github-actions[bot]'
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- run: |
nix-shell ./update-shell.nix --run './update.py do-upgrade -A ${{inputs.pkg}}'
- run: git push

build:
needs: do-upgrade
uses: ./.github/workflows/build.yml
with:
pkg: ${{inputs.pkg}}
secrets: inherit
1 change: 1 addition & 0 deletions result
2 changes: 1 addition & 1 deletion update.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def upgrade(p: Package, args: Args):

if args.mode == 'do-upgrade':
args.mode = 'upgrade'
args.rest = ['--build', '--test', '--commit'] + args.rest
args.rest = ['--build', '--commit'] + args.rest

for f in fields(Args):
assert f.name in args, f.name
Expand Down

0 comments on commit c130df4

Please sign in to comment.