Skip to content

Commit 92b5b1b

Browse files
authored
Fix test deployment workflow to run properly in PRs (#207)
- Remove workflow_run trigger that caused workflow to run on main branch instead of PR branch - Add proper concurrency configuration to prevent conflicts with other workflows - Update paths-ignore to be more specific and allow workflow changes to trigger tests - Fixes #102
1 parent e10ddfc commit 92b5b1b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test-deploy.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ on:
44
pull_request:
55
branches:
66
- main
7-
paths:
8-
- '!.github/**'
7+
paths-ignore:
8+
- '.github/workflows/auto-create-pr-*.yml'
9+
- '.github/workflows/auto-label-pr-*.yml'
10+
- '.github/FUNDING.yml'
11+
- '.github/pull_request_template.md'
912
# Review gh actions docs if you want to further define triggers, paths, etc
1013
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
1114
workflow_dispatch:
12-
# Only trigger, when the build workflow succeeded
13-
workflow_run:
14-
workflows: ["PR checklist checker"]
15-
types:
16-
- completed
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
1719

1820
jobs:
1921
test-deploy:

0 commit comments

Comments
 (0)