Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow manual runs to specify revision to render #177

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: manual
on:
workflow_dispatch:
inputs:
revision:
description: the version or commit to render (if left empty, uses default branch)
required: false
type: string
diffbase:
description: the version or commit to diff against
description: the version or commit to diff against (if left empty, no diff is generated)
required: false
type: string

Expand All @@ -21,3 +25,4 @@ jobs:
input: guide.tcg
workflow: manual
manual_diffbase: ${{ inputs.diffbase }}
revision: ${{ inputs.revision }}
5 changes: 5 additions & 0 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ on:
description: diffbase for manual workflow
required: false
type: string
revision:
description: version to render (defaults is default branch)
required: false
type: string

jobs:
render:
Expand All @@ -47,6 +51,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.revision }}
fetch-depth: 0
fetch-tags: true

Expand Down