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: Update workflow to better handle Dependabot (#372)
- Loading branch information
1 parent
a19997c
commit 64826b8
Showing
2 changed files
with
28 additions
and
0 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 |
---|---|---|
|
@@ -19,11 +19,26 @@ jobs: | |
build: | ||
name: Gradle build | ||
|
||
# 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]') | ||
runs-on: ubuntu-20.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 17 | ||
uses: actions/[email protected] | ||
|
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 |
---|---|---|
|
@@ -9,14 +9,27 @@ jobs: | |
build: | ||
name: Lint Code Base | ||
|
||
# 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]') | ||
runs-on: ubuntu-20.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: Lint Code Base | ||
uses: super-linter/[email protected] | ||
env: | ||
|