Skip to content

Commit

Permalink
"Comment PR" workflow should not be run if "Check PR" is skipped
Browse files Browse the repository at this point in the history
sbernard31 committed Nov 25, 2022

Verified

This commit was signed with the committer’s verified signature.
mrgrain Momo Kornher
1 parent 3afc638 commit e644ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commentPR.yml
Original file line number Diff line number Diff line change
@@ -19,15 +19,15 @@ env:
jobs:
add_comment:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
# we don't want to run workflow if "Check Pull Request" is skipped or cancelled
if: ${{ github.event.workflow_run.event == 'pull_request' && (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure')}}
strategy:
# Maybe we could create this matrix dynamically :
# See : https://tomasvotruba.com/blog/2020/11/16/how-to-make-dynamic-matrix-in-github-actions/
matrix:
jobstep: [nomerge,sortpom,formatter,build,sortimport,checkstyle,androidcheck,semvercheck,javadoc,unittests,integrationtests,buildstatus]

steps:

# Waiting https://github.com/actions/download-artifact/issues/172
# We are using github script
# Inspired by : https://securitylab.github.com/research/github-actions-preventing-pwn-requests/

0 comments on commit e644ae3

Please sign in to comment.