We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 506086f commit 074f93aCopy full SHA for 074f93a
.github/workflows/build-java-app-workflow.yml
@@ -31,6 +31,10 @@ on:
31
type: string
32
required: false
33
default: "develop"
34
+ ref-name:
35
+ type: string
36
+ required: false
37
+ default: ""
38
outputs:
39
version:
40
description: "Project version"
@@ -39,6 +43,7 @@ on:
43
description: "Cache key used for Maven repository"
44
value: ${{ jobs.build-workflow.outputs.cache_key }}
41
45
46
+
42
47
jobs:
48
build-workflow:
49
name: Build Java app
@@ -53,6 +58,7 @@ jobs:
53
58
## This checkout pulls the code of the repository where this workflow is being used
54
59
with:
55
60
fetch-depth: '10'
61
+ ref: ${{ inputs.ref-name != '' && inputs.ref-name || github.ref_name }}
56
62
- uses: actions/checkout@v4
57
63
if: ${{ inputs.dependency_repos != '' }}
64
name: Checkout java-common-libs repository
0 commit comments