From 386e972834afc7affe4331141c332cadd4ad41a8 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 3 Sep 2024 17:28:39 +0100 Subject: [PATCH] ci: use GI_TOKEN so we can run ci on other platforms Summary: Starting to have a play with forgejo, on this platform you cannot define secrets that have a prefix of `GITHUB_`. I still want to maintain CI on github for any pull requests that may come in. The plan in to use the `GITHUB_TOKEN` when we are running on github and use the `GH_TOKEN` when we are running on forgejo Test Plan: Run the CI on github and forgejo, this will need to be a manual process to validate this works. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7422053..ddfa76c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Run stylua uses: JohnnyMorganz/stylua-action@v4.0.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN || secrets.GH_TOKEN }} version: latest args: --check .