Fix --html when --template_html is not provided. #143
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pull_request | |
| on: | |
| pull_request: | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| # Build a fresh container for the PR. | |
| build-container: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| # Login against a Docker registry | |
| # https://github.com/docker/login-action | |
| - name: Log into registry | |
| uses: docker/login-action@v3.4.0 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Docker buildx | |
| uses: docker/setup-buildx-action@v3.10.0 | |
| # Build and push Docker image as "pandoc_test" | |
| # Only amd64, since we're just building a container | |
| # to be used below in the GH action runner. | |
| - name: Build and publish Docker image | |
| uses: docker/build-push-action@v6.16.0 | |
| with: | |
| # Cache layers from the container repo. | |
| # Read-only: Avoid cluttering up the cache on pull requests. | |
| cache-from: type=gha | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ghcr.io/trustedcomputinggroup/pandoc_test:latest | |
| # Use the fresh container to render the samples. | |
| render-samples: | |
| needs: build-container | |
| uses: ./.github/workflows/render.yml | |
| with: | |
| container: ghcr.io/trustedcomputinggroup/pandoc_test | |
| container-version: latest | |
| input: guide.tcg | |
| workflow: pr |