postgresql_cluster icon indicating copy to clipboard operation
postgresql_cluster copied to clipboard

Update of GitHub Actions to Prevent Triggering During Draft Pull Requests

Open ThomasSanson opened this issue 2 years ago • 0 comments

Hello,

I have noticed that our GitHub Actions are currently being triggered even when pull requests are in draft mode. This may lead to an unnecessary usage of resources and potentially unwanted notifications.

I would like to propose that we update our GitHub Actions to prevent them from being triggered when pull requests are in draft mode. This could be achieved by adding a condition to our GitHub Actions workflows to check the status of the pull request.

Here is an example of how this could be implemented:

name: Workflow Name
...
jobs:
  build:
    if: '! github.event.pull_request.draft'
    runs-on: ubuntu-latest
...

In this example, the "build" job only runs if the pull request is not in draft mode.

I would be grateful to hear your thoughts on this proposal.

ThomasSanson avatar Jul 14 '23 17:07 ThomasSanson