From 6d33f079dd687f0f20838e177f66c920660e72a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= Date: Sun, 20 Oct 2024 13:09:45 +0000 Subject: [PATCH] Only Attest Docs to be published --- .github/workflows/branch_main.yml | 2 ++ .github/workflows/part_docs.yml | 8 +++++++- .github/workflows/pr.yml | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/branch_main.yml b/.github/workflows/branch_main.yml index ebc2962..058e43c 100644 --- a/.github/workflows/branch_main.yml +++ b/.github/workflows/branch_main.yml @@ -27,3 +27,5 @@ jobs: attestations: write uses: ./.github/workflows/part_docs.yml + with: + attest: false diff --git a/.github/workflows/part_docs.yml b/.github/workflows/part_docs.yml index 6c74ee2..c52570b 100644 --- a/.github/workflows/part_docs.yml +++ b/.github/workflows/part_docs.yml @@ -1,5 +1,10 @@ on: - workflow_call: {} + workflow_call: + inputs: + attest: + description: "Attest the build" + default: true + type: boolean name: "Documentation" @@ -46,6 +51,7 @@ jobs: - name: "Attest docs provenance" uses: actions/attest-build-provenance@v1 id: attest-docs-provenance + if: "${{ github.event.inputs.attest }}" with: subject-path: 'docs.tar.gz' - name: "Copy docs provenance" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index cf34437..bbd1cdd 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -28,4 +28,6 @@ jobs: attestations: write uses: ./.github/workflows/part_docs.yml + with: + attest: false