From 66c48d1e261279a41605db4a9255527b72263a52 Mon Sep 17 00:00:00 2001 From: Martin Nikov Date: Fri, 31 Oct 2025 18:20:25 +0200 Subject: [PATCH 1/2] config(.github/install-nix) Add `gh token` to `api rate limits` step --- .github/install-nix/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/install-nix/action.yml b/.github/install-nix/action.yml index 3ee26f67..63d9b715 100644 --- a/.github/install-nix/action.yml +++ b/.github/install-nix/action.yml @@ -33,6 +33,8 @@ runs: using: 'composite' steps: - name: Log GH API rate limits + env: + GH_TOKEN: ${{ github.token }} shell: bash run: gh api /rate_limit | jq From eb52b349e4c5a07f667c4601d37d3db89a6def88 Mon Sep 17 00:00:00 2001 From: Martin Nikov Date: Fri, 31 Oct 2025 18:27:34 +0200 Subject: [PATCH 2/2] config(.github/ci): Use relative path for the `install-nix` job --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88c8ab7c..f2a2e847 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,16 +26,17 @@ jobs: test-mcl: runs-on: self-hosted steps: + - name: Checkout first to use locally defined actions + uses: actions/checkout@v4 + - name: Install Nix - uses: metacraft-labs/nixos-modules/.github/install-nix@main + uses: ./.github/install-nix with: cachix-cache: ${{ vars.CACHIX_CACHE }} cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }} substituters: ${{ vars.SUBSTITUTERS }} - - uses: actions/checkout@v4 - - name: Build and test the `mcl` command run: nix develop -c sh -c "dub test --root packages/mcl -- -e 'fetchJson|(coda\.)|nix.run|nix.build'"