Fix custom action.

Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
Michael Keller 2024-05-13 12:13:41 +12:00 committed by Michael Keller
parent 6ae2844f24
commit 7bf40d659c

View file

@ -2,7 +2,7 @@ name: Manage the Subsurface CICD versioning
inputs: inputs:
no-increment: 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 default: false
nightly-builds-secret: nightly-builds-secret:
description: The secret to access the nightly builds repository description: The secret to access the nightly builds repository
@ -20,7 +20,7 @@ runs:
using: composite using: composite
steps: steps:
- name: atomically create or retrieve the build number and assemble release notes for a push (i.e. merging of a pull request) - 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: env:
NIGHTLY_BUILDS_SECRET: ${{ inputs.nightly-builds-secret }} NIGHTLY_BUILDS_SECRET: ${{ inputs.nightly-builds-secret }}
shell: bash shell: bash
@ -32,7 +32,7 @@ runs:
scripts/get-atomic-buildnr.sh $GITHUB_SHA $NIGHTLY_BUILDS_SECRET "CICD-release" scripts/get-atomic-buildnr.sh $GITHUB_SHA $NIGHTLY_BUILDS_SECRET "CICD-release"
- name: retrieve the current version number in all other cases - 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: env:
PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }} PULL_REQUEST_BRANCH: ${{ github.event.pull_request.head.ref }}
shell: bash shell: bash