forked from instaclustr/kafka-ldap-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(main): Fix YAML prettier issues in workflows
- Loading branch information
1 parent
2a9beba
commit c7a92a2
Showing
3 changed files
with
63 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ name: Gradle Package | |
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -14,44 +14,43 @@ jobs: | |
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]". | ||
# Otherwise, clone it normally. | ||
if: | | ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') || | ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') | ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') || | ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') | ||
runs-on: ubuntu-22.04 | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version-file: .java-version | ||
distribution: 'temurin' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Publish to GitHub Packages | ||
run: ./gradlew publish | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version-file: .java-version | ||
distribution: "temurin" | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Publish to GitHub Packages | ||
run: ./gradlew publish | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -22,32 +22,31 @@ jobs: | |
# If the PR is coming from a fork (pull_request_target), ensure it's opened by "dependabot[bot]". | ||
# Otherwise, clone it normally. | ||
if: | | ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') || | ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') | ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]') || | ||
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version-file: .java-version | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Checkout | ||
if: ${{ github.event_name != 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version-file: .java-version | ||
distribution: "temurin" | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build |
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