Skip to content

Commit

Permalink
ci: Allow release pipeline to use custom branch (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 authored May 10, 2023
1 parent ea1ea22 commit 918c7a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
next:
description: "Next version"
required: false
branch:
description: "The branch to use when releasing"
required: true
default: "master"
type: string

jobs:
release:
Expand All @@ -17,6 +22,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Set release version
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down

0 comments on commit 918c7a0

Please sign in to comment.