From 2fa7e5f42b229cf252e61c7bc95d8c1faf752ac8 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 29 Jan 2024 13:44:03 -0800 Subject: [PATCH] Don't override VERSION and REVMARK for default actions builds Fixes: https://github.com/riscv/riscv-cheri/issues/72 --- .github/workflows/build-pdf.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml index cdcf8132..39fd11ea 100644 --- a/.github/workflows/build-pdf.yml +++ b/.github/workflows/build-pdf.yml @@ -53,12 +53,16 @@ jobs: - name: Pull Container run: docker pull riscvintl/riscv-docs-base-container-image:latest + # Override VERSION and REVMARK for manual workflow dispatch + - name: Update environment variables + run: | + echo "VERSION=v${{ github.event.inputs.version }}" >> "$GITHUB_ENV" + echo "REVMARK=${{ github.event.inputs.revision_mark }}" >> "$GITHUB_ENV" + if: github.event_name == 'workflow_dispatch' + # Build PDF and HTML. - name: Build Files run: make all - env: - VERSION: v${{ github.event.inputs.version }} - REVMARK: ${{ github.event.inputs.revision_mark }} # Upload the built PDF and HTML files as a single artifact - name: Upload Build Artifacts