From 1150b4bf84d305107a5db949aa4eaf4e03274ee6 Mon Sep 17 00:00:00 2001 From: Bill Traynor Date: Tue, 28 Nov 2023 13:33:55 -0500 Subject: [PATCH] Update verify.yml Adding some context to the PDF build. Signed-off-by: Bill Traynor --- .github/workflows/verify.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 53633fd3..090709fc 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -6,20 +6,29 @@ on: jobs: Build: runs-on: ubuntu-latest + steps: - name: Checkout repository - - uses: actions/checkout@v3 + uses: actions/checkout@v3 + + # Set the short SHA for use in artifact names + - name: Set short SHA + run: echo "SHORT_SHA=$(echo ${GITHUB_SHA::7})" >> $GITHUB_ENV + + # Get the current date + - name: Get current date + run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV # Pull the latest RISC-V Docs container image - name: Pull Container - - id: pull_container_image - - run: | + id: pull_container_image + run: | docker pull riscvintl/riscv-docs-base-container-image:latest - # Build PDF and HTML files using the container + # Build PDF file using the container - name: Build Files - - id: build_files - - if: steps.pull_container_image.outcome == 'success' - - run: | + id: build_files + if: steps.pull_container_image.outcome == 'success' + run: | docker run --rm -v ${{ github.workspace }}:/build riscvintl/riscv-docs-base-container-image:latest \ /bin/sh -c make