Skip to content

Commit

Permalink
Improvements in the release.yml GitHub Action: Better conditional to …
Browse files Browse the repository at this point in the history
…fail the promote if the build fails, increased the timeout, added the issues write permissions, string literal correction. (#3224)

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Aug 23, 2023
1 parent f9f3729 commit 2cd9e69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ on:
workflow_dispatch:
inputs:
release-major-tag:
description: 'Whether to create major tag of docker image or not. This will create a tag such as 2.3 which points to this version.'
description: 'Whether to create major tag of docker image or not. This will create a tag such as 2 which points to this version.'
required: true
type: boolean
release-latest-tag:
description: >
'Whether to create latest tag of docker image or not. This will update the latest tag to point to this version. You should set this when releasing the latest version, but not patches to old versions.'
Whether to create latest tag of docker image or not. This will update the latest tag to point to this version. You should set this when releasing the latest version, but not patches to old versions.
required: true
type: boolean

permissions:
id-token: write
contents: write
issues: write

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 50

steps:
- name: Set up JDK
Expand Down Expand Up @@ -109,7 +110,7 @@ jobs:

promote:
runs-on: ubuntu-latest
if: success() || failure()
if: ${{ (success() || failure()) && needs.build.result == 'success' }}
needs: [build, validate-docker, validate-archive]
permissions:
contents: write
Expand Down

0 comments on commit 2cd9e69

Please sign in to comment.