Skip to content

Commit 06cb39c

Browse files
dlabajcursoragent
andcommitted
fix(CI): unblock Release workflow documentation job on main pushes
Skip the PR-only team membership check for workflow_call runs and allow the deploy job to proceed when that dependency is skipped, so Release can deploy to NPM again. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a479b4c commit 06cb39c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/documentation.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ on:
1313
required: true
1414
jobs:
1515
check-permissions:
16+
if: github.event_name != 'workflow_call'
1617
uses: patternfly/.github/.github/workflows/check-team-membership.yml@fdb52a63a2220ec8a3b6c2d43f312cda708ffa06
1718
secrets: inherit
1819

1920
deploy:
2021
name: Build, test & deploy
2122
runs-on: ubuntu-latest
2223
needs: check-permissions
23-
if: github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true'
24+
if: >-
25+
always() &&
26+
!cancelled() &&
27+
(github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true')
2428
env:
2529
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
2630
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

0 commit comments

Comments
 (0)