From f496e54902bc32ec110d424b15ed7be3c29ea27e Mon Sep 17 00:00:00 2001 From: xeals Date: Tue, 14 Nov 2023 21:22:13 +1100 Subject: [PATCH 1/4] ci: move github workflows to gitea --- {.github => .gitea}/dependabot.yml | 0 {.github => .gitea}/workflows/build.yml | 0 {.github => .gitea}/workflows/update.yml | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename {.github => .gitea}/dependabot.yml (100%) rename {.github => .gitea}/workflows/build.yml (100%) rename {.github => .gitea}/workflows/update.yml (100%) diff --git a/.github/dependabot.yml b/.gitea/dependabot.yml similarity index 100% rename from .github/dependabot.yml rename to .gitea/dependabot.yml diff --git a/.github/workflows/build.yml b/.gitea/workflows/build.yml similarity index 100% rename from .github/workflows/build.yml rename to .gitea/workflows/build.yml diff --git a/.github/workflows/update.yml b/.gitea/workflows/update.yml similarity index 100% rename from .github/workflows/update.yml rename to .gitea/workflows/update.yml From c1563bf3486ddb668d6b7ea14cebaef33f6dc994 Mon Sep 17 00:00:00 2001 From: xeals Date: Tue, 14 Nov 2023 21:23:39 +1100 Subject: [PATCH 2/4] ci: namespace all uses --- .gitea/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ada5181..441d1bb 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,8 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v23 + uses: https://gitea.com/actions/checkout@v4 + - uses: https://github.com/cachix/install-nix-action@v23 - name: Check ${{ matrix.check }} # Depends on nixos/nix#7759 to simply `nix flake check` run: nix run .#checks.$(nix eval --raw --impure --expr "builtins.currentSystem").${{ matrix.check }} @@ -43,13 +43,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - name: Install nix - uses: cachix/install-nix-action@v23 + uses: https://github.com/cachix/install-nix-action@v23 - name: Show nixpkgs version run: nix eval --impure --expr '(import ./flake-compat.nix { src = ./.; }).lib.version' - name: Setup cachix - uses: cachix/cachix-action@v12 + uses: https://github.com/cachix/cachix-action@v12 if: ${{ matrix.cachixName != '' }} with: name: ${{ matrix.cachixName }} From 0a0ce21db9f85b0f06bbfefecac7223b887ff98b Mon Sep 17 00:00:00 2001 From: xeals Date: Tue, 14 Nov 2023 21:23:49 +1100 Subject: [PATCH 3/4] ci: downgrade actions/checkout to v3 v4 is not mirrored by Gitea --- .gitea/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 441d1bb..f043610 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: https://gitea.com/actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v3 - uses: https://github.com/cachix/install-nix-action@v23 - name: Check ${{ matrix.check }} # Depends on nixos/nix#7759 to simply `nix flake check` @@ -43,7 +43,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: https://gitea.com/actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v3 - name: Install nix uses: https://github.com/cachix/install-nix-action@v23 - name: Show nixpkgs version From 98797b25cf2addbcade0992b94e5df292edb1a94 Mon Sep 17 00:00:00 2001 From: xeals Date: Tue, 14 Nov 2023 22:04:35 +1100 Subject: [PATCH 4/4] ci: override github access token --- .gitea/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f043610..73096df 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -15,7 +15,10 @@ jobs: steps: - name: Checkout repository uses: https://gitea.com/actions/checkout@v3 - - uses: https://github.com/cachix/install-nix-action@v23 + - name: Install nix + uses: https://github.com/cachix/install-nix-action@v23 + with: + github_access_token: ${{ secrets.INPUT_GITHUB_ACCESS_TOKEN }} - name: Check ${{ matrix.check }} # Depends on nixos/nix#7759 to simply `nix flake check` run: nix run .#checks.$(nix eval --raw --impure --expr "builtins.currentSystem").${{ matrix.check }}