An attempt to fix our failing builds (#32681)

* An attempt to fix our failing builds

* Add merge_group condition to checkout step in workflows

This update adds a condition to the checkout step in various GitHub workflows to ensure it only runs when the event_name is "merge_group".

* Fix syntax

* Use v4 tag for checkout action instead of pinned commit

Co-authored-by: Reed Loden <reed@goteleport.com>

---------

Co-authored-by: Reed Loden <reed@goteleport.com>
This commit is contained in:
Jakub Nyckowski 2023-09-27 19:20:56 -04:00 committed by GitHub
parent d20606f54e
commit 6e7f538aae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 0 deletions

View file

@ -29,6 +29,9 @@ jobs:
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
if: ${{ github.event_name == 'merge_group' }}
uses: actions/checkout@v4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:

View file

@ -15,6 +15,9 @@ jobs:
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
if: ${{ github.event_name == 'merge_group' }}
uses: actions/checkout@v4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:

View file

@ -15,6 +15,9 @@ jobs:
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
if: ${{ github.event_name == 'merge_group' }}
uses: actions/checkout@v4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:

View file

@ -15,6 +15,9 @@ jobs:
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
if: ${{ github.event_name == 'merge_group' }}
uses: actions/checkout@v4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:

View file

@ -15,6 +15,9 @@ jobs:
outputs:
changed: ${{ steps.changes.outputs.changed }}
steps:
- name: Checkout
if: ${{ github.event_name == 'merge_group' }}
uses: actions/checkout@v4
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with: