Skip to content

Commit

Permalink
fix working directory in java-gradle-release
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf authored Dec 12, 2024
1 parent 5701f79 commit 7aa1f44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/java-gradle-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
steps:
- name: Release on Github
id: release
uses: bakdata/ci-templates/actions/java-gradle-release@1.49.0
uses: bakdata/ci-templates/actions/java-gradle-release@1.50.2
with:
release-type: ${{ inputs.release-type }}
github-email: ${{ secrets.github-email }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ci-templates
# CI-templates

This is a collection of reusable workflows and composite actions for GitHub that Bakdata uses for open-source projects.

Expand Down
8 changes: 5 additions & 3 deletions actions/java-gradle-release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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' || '' }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 7aa1f44

Please sign in to comment.