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
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:
@@ -70,24 +70,28 @@ jobs:
|
|||||||
needs: [server-core-test, device-agent-test, dashboard-test]
|
needs: [server-core-test, device-agent-test, dashboard-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
uses: ./.gitea/workflows/build_server_core.yaml
|
uses: ./.gitea/workflows/build_server_core.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-device-agent:
|
build-device-agent:
|
||||||
if: "!contains(gitea.ref_name, 'test')"
|
if: "!contains(gitea.ref_name, 'test')"
|
||||||
needs: [server-core-test, device-agent-test, dashboard-test]
|
needs: [server-core-test, device-agent-test, dashboard-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
uses: ./.gitea/workflows/build_device_agent.yaml
|
uses: ./.gitea/workflows/build_device_agent.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-dashboard:
|
build-dashboard:
|
||||||
if: "!contains(gitea.ref_name, 'test')"
|
if: "!contains(gitea.ref_name, 'test')"
|
||||||
needs: [server-core-test, device-agent-test, dashboard-test]
|
needs: [server-core-test, device-agent-test, dashboard-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
uses: ./.gitea/workflows/build_dashboard.yaml
|
uses: ./.gitea/workflows/build_dashboard.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
build-docs:
|
build-docs:
|
||||||
if: "!contains(gitea.ref_name, 'test')"
|
if: "!contains(gitea.ref_name, 'test')"
|
||||||
needs: [server-core-test, device-agent-test, dashboard-test]
|
needs: [server-core-test, device-agent-test, dashboard-test]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
uses: ./.gitea/workflows/docs_call.yaml
|
uses: ./.gitea/workflows/docs_call.yaml
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
release:
|
release:
|
||||||
if: "!contains(gitea.ref_name, 'test')"
|
if: "!contains(gitea.ref_name, 'test')"
|
||||||
|
|||||||
Reference in New Issue
Block a user