Re: Trigger phrases in Github Actions

2022-07-15 Thread Jarek Potiuk
that it looks like >> >>>> issue_comment is mutually exclusive with the other events. For example, >> >>>> given the following flow >> >>>> >> >>>> name: Java Tests >> >>>> on: >> >>>>

Re: Trigger phrases in Github Actions

2022-07-15 Thread Danny McCormick via dev
'examples/kotlin/**', 'release/**', 'buildSrc/**'] > >>>> issue_comment: > >>>> types: [created] > >>>> > >>>> jobs: > >>>> pr_commented: > >>>> # This job

Re: Trigger phrases in Github Actions

2022-07-15 Thread Jarek Potiuk
t comments >>>> name: PR comment >>>> if: ${{ github.event.issue.pull_request }} >>>> runs-on: ubuntu-latest >>>> steps: >>>>- run: | >>>> echo A comment on PR $NUMBER >>>

Re: Trigger phrases in Github Actions

2022-07-14 Thread Danny McCormick via dev
- run: | >>> echo A comment on PR $NUMBER >>> env: >>>NUMBER: ${{ github.event.issue.number }} >>> >>> issue_commented: >>> # This job only runs for issue comments >>> name: Issue comment &g

Re: Trigger phrases in Github Actions

2022-07-14 Thread Kenneth Knowles
ssue.number }} >> >> issue_commented: >> # This job only runs for issue comments >> name: Issue comment >> if: ${{ !github.event.issue.pull_request }} >> runs-on: ubuntu-latest >> steps: >> - run: | >>

Re: Trigger phrases in Github Actions

2022-07-14 Thread Danny McCormick via dev
> the flow will get kicked off but upon validating the if conditional, > neither job will run since the github.event.issue.pull_request parameter is > not present. > > Another caveat is that we'd have to populate with an if statement every > job we wanted to execute by way

Trigger phrases in Github Actions

2022-07-14 Thread Fer Morales Martinez
NUMBER: ${{ github.event.issue.number }} the flow will get kicked off but upon validating the if conditional, neither job will run since the github.event.issue.pull_request parameter is not present. Another caveat is that we'd have to populate with an if statement every job we wanted