Skip to content

Commit 1702f54

Browse files
committed
chore: minor fixes
1 parent 7a81f29 commit 1702f54

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ jobs:
6161
# 1 - Check out the tag when deploying in Maven or check out the source branch instead
6262
######
6363
- name: Checkout the timefold-solver v${{ github.event.inputs.version }} tag
64-
if: ${{ github.event.inputs.deploy-to-maven }}
64+
if: ${{ inputs.deploy-to-maven }}
6565
uses: actions/checkout@v6
6666
with:
6767
fetch-depth: 0
6868
# We fetch the tag when publishing artifacts to Maven
69-
ref: $TAG_NAME
69+
ref: ${{ env.TAG_NAME }}
7070

7171
- name: Checkout timefold-solver ${{ github.event.inputs.sourceBranch }} branch
72-
if: ${{ !github.event.inputs.deploy-to-maven }}
72+
if: ${{ !inputs.deploy-to-maven }}
7373
uses: actions/checkout@v6
7474
with:
7575
fetch-depth: 0
@@ -89,12 +89,12 @@ jobs:
8989
# 3 - Clean up the release branch when deploying in Maven or clean up the tag instead
9090
######
9191
- name: Delete release branch from timefold-solver (if exists)
92-
if: ${{ github.event.inputs.deploy-to-maven }}
92+
if: ${{ inputs.deploy-to-maven }}
9393
continue-on-error: true
9494
run: git push -d origin $RELEASE_BRANCH_NAME
9595

9696
- name: Delete tag from timefold-solver (if exists)
97-
if: ${{ !github.event.inputs.deploy-to-maven }}
97+
if: ${{ !inputs.deploy-to-maven }}
9898
continue-on-error: true
9999
run: |
100100
git tag -d $TAG_NAME
@@ -105,14 +105,14 @@ jobs:
105105
# or create the artifact file and push the tag to the solver repository
106106
######
107107
- name: Create release branch for timefold-solver and switch to it
108-
if: ${{ github.event.inputs.deploy-to-maven }}
108+
if: ${{ inputs.deploy-to-maven }}
109109
run: |
110110
git config user.name "Timefold Release Bot"
111111
git config user.email "release@timefold.ai"
112112
git checkout -b $RELEASE_BRANCH_NAME
113113
114114
- name: Set release version and push tag to timefold-solver
115-
if: ${{ !github.event.inputs.deploy-to-maven }}
115+
if: ${{ !inputs.deploy-to-maven }}
116116
env:
117117
DRY_RUN: ${{ github.event.inputs.dryRun }}
118118
run: |
@@ -135,7 +135,7 @@ jobs:
135135
# 5 - Restore the artifacts
136136
######
137137
- name: Restore the artifacts for deploying timefold-solver
138-
if: ${{ github.event.inputs.deploy-to-maven }}
138+
if: ${{ inputs.deploy-to-maven }}
139139
run: |
140140
# Create a compressed file containing all the artifacts
141141
tar xvzf artifacts.tar.gz
@@ -148,7 +148,7 @@ jobs:
148148
# 6 - Publish the artifacts of the solver and enterprise repositories
149149
######
150150
- name: Publish timefold-solver to JFrog
151-
if: ${{ !github.event.inputs.deploy-to-maven }}
151+
if: ${{ !inputs.deploy-to-maven }}
152152
uses: jreleaser/release-action@80ffb38fa759704eed4db5c7fcaae3ac1079473e # v2
153153
env:
154154
JRELEASER_DRY_RUN: ${{ github.event.inputs.dryRun }}
@@ -163,7 +163,7 @@ jobs:
163163
arguments: full-release --config-file jreleaser-jfrog.yml
164164

165165
- name: Publish timefold-solver to Maven Central
166-
if: ${{ github.event.inputs.deploy-to-maven }}
166+
if: ${{ inputs.deploy-to-maven }}
167167
uses: jreleaser/release-action@80ffb38fa759704eed4db5c7fcaae3ac1079473e # v2
168168
env:
169169
JRELEASER_DRY_RUN: ${{ github.event.inputs.dryRun }}

0 commit comments

Comments
 (0)