Skip to content

Commit

Permalink
Refactor pull request from forks (#1424)
Browse files Browse the repository at this point in the history
* Refactor pull request from forks
  • Loading branch information
alfespa17 authored Oct 17, 2024
1 parent db0747c commit b462866
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
pull_request:
types: [opened, synchronize, reopened]
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
build-jammy:
Expand All @@ -33,16 +31,21 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Verify with Maven
- name: Build Terrakube
if: github.event.pull_request.head.repo.full_name == github.repository
run: mvn -B verify --file pom.xml org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=AzBuilder_azb-server
env:
USER_NAME: ${{ secrets.USER_NAME }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name: Build Terrakube from Fork
if: github.event.pull_request.head.repo.full_name != github.repository
run: mvn clean install

build-alpaquita:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b462866

Please sign in to comment.