Skip to content

Commit

Permalink
Fix follow-up action when a PR is closed (#847)
Browse files Browse the repository at this point in the history
### Summary

When a submission PR is closed, an action posts a comment with
information for new ecosystem members. For example,
#823 (comment).

The problem is that this comment is posted even when the PR is closed
but wasn't merged. This PR fixes the workflow to only trigger when the
PR is merged.
  • Loading branch information
frankharkins authored Dec 4, 2024
1 parent 75cafb9 commit b7b2534
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ecosystem-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
if: >
startsWith(github.event.issue.title, '[Submission]:')
&& github.event.action == 'closed'
&& github.event.pull_request.merged == true
&& contains(github.event.issue.labels.*.name, 'submission')
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b7b2534

Please sign in to comment.