Skip to content

Commit

Permalink
Add parameter latest to release workflow (#2004)
Browse files Browse the repository at this point in the history
Allow user to set latest/non latest for new releases.

---------

Co-authored-by: Florian Omnès <26088210+flomnes@users.noreply.github.com>
  • Loading branch information
payetvin and flomnes committed Mar 25, 2024
1 parent 802ddb9 commit b452e5c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
description: "Run all tests (true/false)"
required: true
type: string
set_latest:
description: "Set the release as latest"
required: true
type: boolean
jobs:
release:
name: Release pushed tag
Expand All @@ -28,13 +32,14 @@ jobs:
title: ${{ github.event.inputs.release_name }}
tests: ${{ github.event.inputs.run-tests }}
target_branch: ${{ github.event.inputs.target_branch }}
latest: ${{ github.event.inputs.set_latest }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$title" \
--notes="Run tests: $tests"\
--target="$target_branch"
--target="$target_branch" \
--latest=$latest
ubuntu:
Expand Down Expand Up @@ -66,7 +71,6 @@ jobs:
uses: ./.github/workflows/oracle8.yml
with:
run-tests: ${{ inputs.run-tests }}


user_guide:
name: User Guide
Expand Down

0 comments on commit b452e5c

Please sign in to comment.