Skip to content

Commit

Permalink
Fix buildkite job updating of flake.lock (input-output-hk#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack authored Aug 10, 2021
1 parent d5d304d commit 9cb9fd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .buildkite/updates.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
steps:
- label: 'Update hackage.nix'
- label: 'Update hackage.nix and stackage.nix'
command:
- nix-build build.nix -A maintainer-scripts.update-hackage -o update-hackage.sh
- echo "+++ Updating hackage.nix"
- ./update-hackage.sh
artifact_paths:
- "hackage-src.json"
agents:
system: x86_64-linux

- label: 'Update stackage.nix'
command:
- nix-build build.nix -A maintainer-scripts.update-stackage -o update-stackage.sh
- echo "+++ Updating stackage.nix"
- ./update-stackage.sh
artifact_paths:
- "stackage-src.json"
- "flake.lock"
agents:
system: x86_64-linux

Expand All @@ -24,7 +17,7 @@ steps:

- label: 'Update pins'
command:
- 'buildkite-agent artifact download "*.json" .'
- 'buildkite-agent artifact download "flake.lock" .'
- nix-build build.nix -A maintainer-scripts.update-pins -o update-pins.sh
- ./update-pins.sh
agents:
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-pins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ in
source ${./git.env}
git add *.json
git add flake.lock
check_staged
echo "Committing changes..."
git commit --message "Update Hackage and Stackage"
Expand Down

0 comments on commit 9cb9fd6

Please sign in to comment.