Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix working directory in java-gradle-release #228

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
raminqaf marked this conversation as resolved.
Show resolved Hide resolved
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
Loading