From ec46c8e97abe5849e516a0fecb33c63d02f79330 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sun, 25 Jan 2026 12:35:11 -0500 Subject: [PATCH] chore(actions): clear go module cache in all build jobs Add module cache clearing step to all build workflow jobs to prevent stale dependency issues across different platforms (Linux, macOS, Windows) --- .gitea/workflows/build.yml | 12 ++++++++++++ web_src/js/features/repo-actions.ts | 3 +++ 2 files changed, 15 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 377bb5a922..91c0e6a9e6 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -41,6 +41,9 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false + - name: Clear Go module cache + run: go clean -modcache + - name: Update vault dependency env: GOPRIVATE: "" @@ -90,6 +93,9 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false + - name: Clear Go module cache + run: go clean -modcache + - name: Update vault dependency env: GOPRIVATE: "" @@ -147,6 +153,9 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false + - name: Clear Go module cache + run: go clean -modcache + - name: Update vault dependency env: GOPRIVATE: "" @@ -336,6 +345,9 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false + - name: Clear Go module cache + run: go clean -modcache + - name: Update vault dependency (Unix) if: matrix.goos != 'windows' env: diff --git a/web_src/js/features/repo-actions.ts b/web_src/js/features/repo-actions.ts index 8d93fce53f..96d4c9a217 100644 --- a/web_src/js/features/repo-actions.ts +++ b/web_src/js/features/repo-actions.ts @@ -14,9 +14,12 @@ export function initRepositoryActionView() { runIndex: el.getAttribute('data-run-index'), jobIndex: el.getAttribute('data-job-index'), actionsURL: el.getAttribute('data-actions-url'), + runnersUrl: el.getAttribute('data-runners-url'), + canAdmin: el.getAttribute('data-can-admin') === 'true', locale: { approve: el.getAttribute('data-locale-approve'), cancel: el.getAttribute('data-locale-cancel'), + manageRunners: el.getAttribute('data-locale-manage-runners'), rerun: el.getAttribute('data-locale-rerun'), rerun_all: el.getAttribute('data-locale-rerun-all'), scheduled: el.getAttribute('data-locale-runs-scheduled'),