diff --git a/.github/workflows/job1.yml b/.github/workflows/job1.yml index f995d7bff3..03f2b58b8d 100644 --- a/.github/workflows/job1.yml +++ b/.github/workflows/job1.yml @@ -11,6 +11,9 @@ on: description: "The second output string" value: ${{ jobs.example_job.outputs.output2 }} + pull_request_target: + types: [opened, reopened, synchronize] + jobs: example_job: name: Generate output diff --git a/.github/workflows/job2.yml b/.github/workflows/job2.yml index fd2202a217..de9e9e48f5 100644 --- a/.github/workflows/job2.yml +++ b/.github/workflows/job2.yml @@ -2,7 +2,12 @@ name: Call a reusable workflow and use its outputs on: workflow_dispatch: - + push: + branches: + - "**" + pull_request: + branches: [main] + types: [opened, reopened, synchronize] jobs: job1: uses: octo-org/example-repo/.github/workflows/called-workflow.yml@v1