diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml index c2b75d2..dc5e413 100644 --- a/.github/workflows/build-pdf.yml +++ b/.github/workflows/build-pdf.yml @@ -34,24 +34,28 @@ jobs: runs-on: ubuntu-latest steps: - # Step 1: Checkout the repository + # Checkout the repository - name: Checkout repository uses: actions/checkout@v4 with: submodules: recursive - # Step 2: Pull the latest RISC-V Docs container image + # Pull the latest RISC-V Docs container image - name: Pull Container run: docker pull riscvintl/riscv-docs-base-container-image:latest - # Step 3: Build Files + # 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 Files - name: Build Files run: make - env: - VERSION: v${{ github.event.inputs.version }} - REVMARK: ${{ github.event.inputs.revision_mark }} - # Step 4: Upload the built PDF files as a single artifact + # Upload the built PDF files as a single artifact - name: Upload Build Artifacts uses: actions/upload-artifact@v4 with: