From 7bf40d659c9acad90a8a26e4fc57caaf2a354edd Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 13 May 2024 12:13:41 +1200 Subject: [PATCH] Fix custom action. Signed-off-by: Michael Keller --- .github/actions/manage-version/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/manage-version/action.yml b/.github/actions/manage-version/action.yml index 98c5fcb3c..26ffabad4 100644 --- a/.github/actions/manage-version/action.yml +++ b/.github/actions/manage-version/action.yml @@ -2,7 +2,7 @@ name: Manage the Subsurface CICD versioning inputs: no-increment: - description: Only get the current version, do not increment it even for pushevents + description: Only get the current version, do not increment it even for push events (Caution: not actually a boolean) default: false nightly-builds-secret: description: The secret to access the nightly builds repository @@ -20,7 +20,7 @@ runs: using: composite steps: - name: atomically create or retrieve the build number and assemble release notes for a push (i.e. merging of a pull request) - if: github.event_name == 'push' && ! inputs.no-increment + if: github.event_name == 'push' && inputs.no-increment == 'false' env: NIGHTLY_BUILDS_SECRET: ${{ inputs.nightly-builds-secret }} shell: bash @@ -32,7 +32,7 @@ runs: scripts/get-atomic-buildnr.sh $GITHUB_SHA $NIGHTLY_BUILDS_SECRET "CICD-release" - name: retrieve the current version number in all other cases - if: github.event_name != 'push' || inputs.no-increment + if: github.event_name != 'push' || inputs.no-increment != 'false' env: PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }} shell: bash