Skip to content

Commit 5e9bf73

Browse files
authored
Merge pull request #1429 from Adyen/fix/failing-step-for-external-forks
Fix failing failing step for external forks
2 parents 750f437 + 8ca3950 commit 5e9bf73

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222

2323
jobs:
2424
release:
25+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
2526
permissions:
2627
contents: write
2728
pull-requests: write
@@ -37,4 +38,4 @@ jobs:
3738
release-title: Adyen Java API Library
3839
pre-release: ${{ inputs.pre-release || false }}
3940
github-release: ${{ inputs.github-release || false }}
40-
separator: .pre.beta
41+
separator: .pre.beta

.github/workflows/sonarcloud.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [opened, synchronize, reopened]
8+
types: [ opened, synchronize, reopened ]
99

1010
jobs:
1111
SonarCloud-Build:
@@ -32,10 +32,15 @@ jobs:
3232
path: ~/.m2
3333
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3434
restore-keys: ${{ runner.os }}-m2
35+
36+
- name: Run Checkstyle
37+
run: mvn checkstyle:check
38+
3539
- name: Generate coverage report
3640
run: mvn test jacoco:report
3741

3842
- name: Run SonarCloud Analysis
43+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
3944
env:
4045
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4146
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)