mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix custom action.
Signed-off-by: Michael Keller <mikeller@042.ch>
This commit is contained in:
parent
6ae2844f24
commit
7bf40d659c
1 changed files with 3 additions and 3 deletions
6
.github/actions/manage-version/action.yml
vendored
6
.github/actions/manage-version/action.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue