Skip to content

Commit

Permalink
Merge pull request #34 from arichardson/avoid-empty-revmark
Browse files Browse the repository at this point in the history
Only override VERSION and REVMARK for manual GitHub Actions builds
  • Loading branch information
wmat authored Feb 6, 2024
2 parents 87b43ae + dcab7f2 commit d3f1da8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d3f1da8

Please sign in to comment.