ci: add secrets: inherit to build workflow calls
CI / server-core-test (push) Successful in 5m59s
CI / device-agent-test (push) Successful in 1m19s
CI / dashboard-test (push) Successful in 1m9s
CI / build-server-core (push) Failing after 4m44s
CI / build-device-agent (push) Failing after 2m0s
CI / build-docs (push) Has been cancelled
CI / release (push) Has been cancelled
CI / build-dashboard (push) Has been cancelled

Reusable workflows dont inherit secrets from caller by default.
secrets.BUILD_TOKEN was empty string, causing:
  ::error::Input required and not supplied: token

Added secrets: inherit to all 4 build workflow calls in ci.yml.
This commit is contained in:
datadunia
2026-06-10 09:21:50 +07:00
parent c37d4a751c
commit 9470435704
+4
View File
@@ -70,24 +70,28 @@ jobs:
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_server_core.yaml
secrets: inherit
build-device-agent:
if: "!contains(gitea.ref_name, 'test')"
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_device_agent.yaml
secrets: inherit
build-dashboard:
if: "!contains(gitea.ref_name, 'test')"
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest
uses: ./.gitea/workflows/build_dashboard.yaml
secrets: inherit
build-docs:
if: "!contains(gitea.ref_name, 'test')"
needs: [server-core-test, device-agent-test, dashboard-test]
runs-on: ubuntu-latest
uses: ./.gitea/workflows/docs_call.yaml
secrets: inherit
release:
if: "!contains(gitea.ref_name, 'test')"