From 2106cc331a4e7b4a2fa9b3c9f9a5081cb25a5fb9 Mon Sep 17 00:00:00 2001 From: Chris Fenner Date: Tue, 10 Sep 2024 19:52:27 +0000 Subject: [PATCH] allow manual runs to specify revision to render --- .github/workflows/manual.yml | 7 ++++++- .github/workflows/render.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 4c52516..ca02629 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -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 @@ -21,3 +25,4 @@ jobs: input: guide.tcg workflow: manual manual_diffbase: ${{ inputs.diffbase }} + revision: ${{ inputs.revision }} diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 8b0ba15..59132ba 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -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: @@ -47,6 +51,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + ref: ${{ inputs.revision }} fetch-depth: 0 fetch-tags: true