Skip to content

Commit

Permalink
Don't override VERSION and REVMARK for default actions builds
Browse files Browse the repository at this point in the history
Fixes: riscv#72
  • Loading branch information
arichardson committed Jan 29, 2024
1 parent f1705ad commit 2fa7e5f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fa7e5f

Please sign in to comment.