Skip to content

Commit 5f3beb5

Browse files
authored
fix: correct new release process (#231)
Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co>
1 parent d73b15d commit 5f3beb5

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/pre-post-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
required: true
1616
phase:
1717
description: 'Pre or post release phase'
18-
type: string #valid values are 'pre' or 'post'
18+
type: string # valid values are 'pre' or 'post'
1919
required: true
2020

2121
env:
@@ -82,7 +82,7 @@ jobs:
8282
if: inputs.phase == 'post'
8383
uses: ./.github/workflows/maven-goal
8484
with:
85-
command: ./mvnw -V versions:set -DprocessAllModules=true -DgenerateBackupPoms=false -nextSnapshot=true
85+
command: ./mvnw -V versions:set -DprocessAllModules=true -DgenerateBackupPoms=false -DnextSnapshot=true
8686

8787
- name: Push the ${{ inputs.phase }} release branch
8888
run: |

.github/workflows/pre-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ on:
1212
description: 'The version to release (e.g. 1.2.3). This workflow will automatically perform the required version bumps'
1313
required: true
1414

15+
permissions:
16+
contents: read
17+
1518
concurrency:
1619
group: ${{ github.workflow }}
1720

1821
jobs:
1922
pre-release:
2023
name: "Bump versions and create PR"
2124
uses: ./.github/workflows/pre-post-release.yml
25+
permissions:
26+
contents: write
2227
with:
2328
ref: ${{ inputs.ref }}
2429
version: ${{ inputs.version }}

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ on:
1919
permissions:
2020
contents: read
2121

22-
2322
concurrency:
2423
group: ${{ github.workflow }}
2524

25+
env:
26+
RELEASE_VERSION: ${{ inputs.version }}
27+
2628
jobs:
2729
validate-tag:
2830
runs-on: ubuntu-latest
@@ -88,7 +90,7 @@ jobs:
8890
needs:
8991
- release
9092
uses: ./.github/workflows/pre-post-release.yml
91-
if: inputs.dry_run == 'false'
93+
if: inputs.dry_run == false
9294
with:
9395
ref: ${{ inputs.ref }}
9496
version: ${{ inputs.version }}

0 commit comments

Comments
 (0)