From 438efbd7962d0e3cbab45490d6d7ffb41f18060b Mon Sep 17 00:00:00 2001 From: Ward Poelmans Date: Mon, 26 Aug 2024 11:28:48 +0200 Subject: [PATCH] allow the specify the version of ood to build --- .github/workflows/build-publish-containers.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build-publish-containers.yml b/.github/workflows/build-publish-containers.yml index 4cb2189..c907da7 100644 --- a/.github/workflows/build-publish-containers.yml +++ b/.github/workflows/build-publish-containers.yml @@ -2,6 +2,11 @@ name: Build and publish container images on: pull_request: workflow_dispatch: + inputs: + upstream_version: + type: string + description: Which version should be build? + push: schedule: # rebuild image every Monday morning @@ -116,6 +121,14 @@ jobs: echo "Building release $release" echo "RELEASE=${release}" >> $GITHUB_ENV + - name: Check the version specified manually + if: ${{ inputs.upstream_version }} + shell: bash + run: | + release=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/OSC/ondemand/releases/tags/${{ inputs.upstream_version }} | jq -e -r .name) + echo "Building release $release" + echo "RELEASE=${release}" >> $GITHUB_ENV + - name: Check out the repo uses: actions/checkout@v4 with: