Skip to content

Commit ccbad09

Browse files
committed
ci: skip permissions check for repository_dispatch events
1 parent f2fe694 commit ccbad09

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/e2e-staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ concurrency:
3939
jobs:
4040
permissions-check:
4141
name: Check Permissions
42+
if: ${{ github.event_name != 'repository_dispatch' }}
4243
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
4344
steps:
4445
- name: Check org membership
@@ -70,6 +71,7 @@ jobs:
7071
validate-instances:
7172
name: Validate Staging Instances
7273
needs: [permissions-check]
74+
if: ${{ always() && (needs.permissions-check.result == 'success' || needs.permissions-check.result == 'skipped') }}
7375
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
7476
steps:
7577
- name: Checkout Repo
@@ -88,6 +90,7 @@ jobs:
8890
integration-tests:
8991
name: Integration Tests (${{ matrix.test-name }}, ${{ matrix.test-project }})
9092
needs: [permissions-check]
93+
if: ${{ always() && (needs.permissions-check.result == 'success' || needs.permissions-check.result == 'skipped') }}
9194
runs-on: 'blacksmith-8vcpu-ubuntu-2204'
9295
defaults:
9396
run:

0 commit comments

Comments
 (0)