-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix working directory in java-gradle-release (#228)
This is causing my build to fail: https://github.com/bakdata/kpops-examples/actions/runs/12295922076/job/34313826816
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ runs: | |
using: "composite" | ||
steps: | ||
- name: Check out repository | ||
uses: bakdata/ci-templates/actions/checkout@1.49.0 | ||
uses: bakdata/ci-templates/actions/checkout@1.50.2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ inputs.github-token }} | ||
|
@@ -68,9 +68,10 @@ runs: | |
sudo wget -O /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/3.3.0/src/semver | ||
sudo chmod +x /usr/local/bin/semver | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
- name: Set up Gradle with version ${{ inputs.gradle-version }} | ||
uses: bakdata/ci-templates/actions/java-gradle-setup@1.49.0 | ||
uses: bakdata/ci-templates/actions/java-gradle-setup@1.50.2 | ||
with: | ||
java-distribution: ${{ inputs.java-distribution }} | ||
java-version: ${{ inputs.java-version }} | ||
|
@@ -89,6 +90,7 @@ runs: | |
fi | ||
echo "release-version=$release_version" >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
- name: Create release | ||
run: ./gradlew release -x test -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=${{ steps.evaluate-version.outputs.release-version }} -Prelease.disablePushToRemote=true -Prelease.requireBranch=${{ github.event.repository.default_branch }} ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }} | ||
|
@@ -101,7 +103,7 @@ runs: | |
shell: bash | ||
|
||
- name: Create changelog | ||
uses: bakdata/ci-templates/actions/[email protected].0 | ||
uses: bakdata/ci-templates/actions/[email protected].2 | ||
with: | ||
github-token: ${{ inputs.github-token }} | ||
tag: ${{ steps.evaluate-version.outputs.release-version }} | ||
|