From 8aa172081631d40405ce12d4c5111f42a40d60e6 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 13 Dec 2023 07:48:02 +0100 Subject: [PATCH] github: allow update to specific commit Signed-off-by: David Bauer --- .github/workflows/bump-gluon.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump-gluon.yml b/.github/workflows/bump-gluon.yml index 804e161..5aa29b7 100644 --- a/.github/workflows/bump-gluon.yml +++ b/.github/workflows/bump-gluon.yml @@ -10,6 +10,10 @@ on: description: "Site branch to update" required: true default: "master" + gluon-commit: + description: "Gluon commit to update to" + required: true + default: "HEAD" jobs: update-gluon: @@ -33,11 +37,11 @@ jobs: - name: Checkout Gluon branch run: git -C $GLUON_CHECKOUT_DIR checkout "$(jq -r '.gluon.branch' $BUILD_INFO)" - - name: Get HEAD commit hash + - name: Get commit hash id: head-hash run: | - echo "hash=$(git -C $GLUON_CHECKOUT_DIR rev-parse HEAD)" >> "$GITHUB_OUTPUT" - echo "short-hash=$(git -C $GLUON_CHECKOUT_DIR rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + echo "hash=$(git -C $GLUON_CHECKOUT_DIR rev-parse ${{ github.event.inputs.gluon-commit }})" >> "$GITHUB_OUTPUT" + echo "short-hash=$(git -C $GLUON_CHECKOUT_DIR rev-parse --short ${{ github.event.inputs.gluon-commit }})" >> "$GITHUB_OUTPUT" - name: Get build-info.json commit hash id: build-info-hash