diff --git a/.github/workflows/run-rsfc.yml b/.github/workflows/run-rsfc.yml index 7a52cf1..a63cb68 100644 --- a/.github/workflows/run-rsfc.yml +++ b/.github/workflows/run-rsfc.yml @@ -6,6 +6,9 @@ on: description: 'Repository URL to analyze' required: true type: string + is_fork: + required: true + type: boolean secrets: RSFC_TOKEN: required: false @@ -74,7 +77,8 @@ jobs: const job = jobs.data.jobs[jobs.data.jobs.length - 1] core.setOutput("job_id", job.id) - name: Create neutral check - if: ${{ github.event_name == 'pull_request' }} + # if: ${{ github.event_name == 'pull_request' }} + if: ${{ !inputs.is_fork }} uses: actions/github-script@v7 with: script: | diff --git a/.github/workflows/use-rsfc.yml b/.github/workflows/use-rsfc.yml new file mode 100644 index 0000000..2906214 --- /dev/null +++ b/.github/workflows/use-rsfc.yml @@ -0,0 +1,15 @@ +name: Run RSFC analysis + +on: + workflow_dispatch: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + run-rsfc-checks: + uses: oeg-upm/rsfc/.github/workflows/run-rsfc.yml@main + with: + repo_url: https://github.com/${{ github.repository }} + is_fork: ${{ github.event.pull_request.head.repo.full_name != github.repository }} + secrets: + RSFC_TOKEN: ${{ secrets.RSFC_TOKEN }} \ No newline at end of file