diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4f174db..4578514 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: env: GOPRIVATE: forgejo.riotpiao.com GOFLAGS: -mod=readonly - GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }} + REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }} steps: - name: install node (required by JS-based actions) run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git @@ -22,7 +22,7 @@ jobs: - name: configure git auth for private module fetch run: | - git config --global url."https://oauth2:${GITHUB_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" + git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" - name: cache go modules + build cache uses: actions/cache@v4 diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 5f4b014..2606fa7 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -12,7 +12,7 @@ jobs: image: golang:1.26 env: GOPRIVATE: forgejo.riotpiao.com - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REGISTRY_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - name: install node + git (required by JS-based actions) run: apt-get update && apt-get install -y --no-install-recommends nodejs ca-certificates git @@ -21,7 +21,7 @@ jobs: - name: configure git auth for private module fetch run: | - git config --global url."https://oauth2:${GITHUB_TOKEN}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" + git config --global url."https://oauth2:${REGISTRY_PAT}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com" - name: build cross-platform binaries run: |