From a947a9a40bc99acecabb9debfcb8209524868309 Mon Sep 17 00:00:00 2001 From: Steven Phillips Date: Tue, 24 Dec 2024 16:51:54 +0000 Subject: [PATCH] Added support for RefToBuild --- .github/workflows/build-webpages.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-webpages.yml b/.github/workflows/build-webpages.yml index d7ffe735..04839ae6 100644 --- a/.github/workflows/build-webpages.yml +++ b/.github/workflows/build-webpages.yml @@ -3,6 +3,12 @@ name: Build web-pages (Ubuntu-latest) on: workflow_dispatch: branches: [ main ] + inputs: + refToBuild: + description: 'Tag or commit SHA1 to build - must be on main' + default: '' + required: false + type: string # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -18,6 +24,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ inputs.refToBuild }} - name: Compile nroff tools run: | @@ -29,7 +37,6 @@ jobs: export PATH=`pwd`/nroff/bin/linux:$PATH cd ./microemacs/doc make web_pages/me/index.html - unzip --help - name: Build package store run: |