Skip to content

Commit 941c27f

Browse files
authored
Merge pull request #602 from Nadrieril/merge-queue
Only reload jobs on non-draft PRs
2 parents 6768ee6 + 54ea5be commit 941c27f

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

flake.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
description = "Charon";
33

44
inputs = {
5+
flake-compat.url = "github:edolstra/flake-compat"; # For ./shell.nix
56
flake-utils.url = "github:numtide/flake-utils";
67
nixpkgs.url = "nixpkgs/nixos-unstable";
78
# This makes it possible for downstream flakes to use a different nixpkgs
@@ -17,7 +18,7 @@
1718
crane.url = "github:ipetkov/crane";
1819
};
1920

20-
outputs = { self, flake-utils, nixpkgs, nixpkgs-ocaml, rust-overlay, crane }:
21+
outputs = { self, flake-utils, nixpkgs, nixpkgs-ocaml, rust-overlay, crane, ... }:
2122
flake-utils.lib.eachDefaultSystem (system:
2223
let
2324
pkgs = import nixpkgs {

scripts/ci-rerun-pr-jobs.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
# Lists the workflow runs associated with open PRs and re-runs them all
33
gh pr list --base main --json isDraft,statusCheckRollup \
4-
| jq -r '.[].statusCheckRollup[].detailsUrl | capture("https://github.com/AeneasVerif/charon/actions/runs/(?<run_id>[0-9]+)/job/[0-9]+") | .run_id' \
4+
| jq -r '.[]
5+
| select(.isDraft | not)
6+
| .statusCheckRollup[].detailsUrl
7+
| capture("https://github.com/AeneasVerif/charon/actions/runs/(?<run_id>[0-9]+)/job/[0-9]+")
8+
| .run_id' \
59
| sort | uniq \
610
| while read run; do gh run rerun "$run"; done

0 commit comments

Comments
 (0)