Avoid unnecessary terraform plans for closed (unmerged) PRs (#2294)

* Avoid unnecessary terraform plans for closed (unmerged) PRs

* fix: also update templates copied to avoid Windows symlink problems.

---------

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
Peter Brumblay 2024-05-21 07:03:07 -06:00 committed by GitHub
parent 3368be51bd
commit a04d63e991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 0 deletions

View File

@ -34,6 +34,12 @@ env:
jobs:
fast-pr:
# Skip PRs which are closed without being merged.
if: >-
github.event.action == 'closed' &&
github.event.pull_request.merged == true ||
github.event.action == 'opened' ||
github.event.action == 'synchronize'
permissions:
contents: read
id-token: write

View File

@ -34,6 +34,12 @@ env:
jobs:
fast-pr:
# Skip PRs which are closed without being merged.
if: >-
github.event.action == 'closed' &&
github.event.pull_request.merged == true ||
github.event.action == 'opened' ||
github.event.action == 'synchronize'
permissions:
contents: read
id-token: write

View File

@ -34,6 +34,12 @@ env:
jobs:
fast-pr:
# Skip PRs which are closed without being merged.
if: >-
github.event.action == 'closed' &&
github.event.pull_request.merged == true ||
github.event.action == 'opened' ||
github.event.action == 'synchronize'
permissions:
contents: read
id-token: write

View File

@ -34,6 +34,12 @@ env:
jobs:
fast-pr:
# Skip PRs which are closed without being merged.
if: >-
github.event.action == 'closed' &&
github.event.pull_request.merged == true ||
github.event.action == 'opened' ||
github.event.action == 'synchronize'
permissions:
contents: read
id-token: write