Skip to content

Commit

Permalink
Workflow adjustments/fixes for PRs from forks (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Mar 24, 2023
1 parent 308bbd5 commit f363759
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pr-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ name: PR Labels

# yamllint disable-line rule:truthy
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
pull_request_target:
types:
- opened
- labeled
- unlabeled
- synchronize
workflow_call:

jobs:
pr_labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: 🚀 Upload coverage report
uses: codecov/codecov-action@v3.1.1
- name: SonarCloud Scan
if: github.repository_owner == 'frenck'
if: github.event.pull_request.head.repo.fork == false
uses: SonarSource/sonarcloud-github-action@v1.9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f363759

Please sign in to comment.