Skip to content

Commit

Permalink
Merge pull request #1429 from Adyen/fix/failing-step-for-external-forks
Browse files Browse the repository at this point in the history
Fix failing failing step for external forks
  • Loading branch information
ayodejidev authored Feb 7, 2025
2 parents 750f437 + 8ca3950 commit 5e9bf73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

jobs:
release:
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
permissions:
contents: write
pull-requests: write
Expand All @@ -37,4 +38,4 @@ jobs:
release-title: Adyen Java API Library
pre-release: ${{ inputs.pre-release || false }}
github-release: ${{ inputs.github-release || false }}
separator: .pre.beta
separator: .pre.beta
7 changes: 6 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
types: [ opened, synchronize, reopened ]

jobs:
SonarCloud-Build:
Expand All @@ -32,10 +32,15 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Run Checkstyle
run: mvn checkstyle:check

- name: Generate coverage report
run: mvn test jacoco:report

- name: Run SonarCloud Analysis
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 5e9bf73

Please sign in to comment.