Skip to content

Commit c485e8c

Browse files
Fix VHS demo workflow to only run on merges to default branch (#59)
Co-authored-by: alvarosanchez <153880+alvarosanchez@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent f6d4f7b commit c485e8c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/vhs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: VHS Demo
22

33
on:
44
workflow_dispatch:
5-
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- main
69
paths:
710
- '.github/workflows/vhs.yml'
811
- 'docs/demo/**'
@@ -14,7 +17,7 @@ permissions:
1417
contents: write
1518

1619
concurrency:
17-
group: vhs-demo-${{ github.event.pull_request.number || github.ref }}
20+
group: vhs-demo-${{ github.ref }}
1821
cancel-in-progress: true
1922

2023
jobs:
@@ -58,7 +61,7 @@ jobs:
5861
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5962
with:
6063
commit_message: 'docs: update generated VHS demo'
61-
branch: ${{ github.head_ref || github.ref_name }}
64+
branch: ${{ github.ref_name }}
6265
commit_user_name: vhs-action 📼
6366
commit_user_email: actions@github.com
6467
commit_author: vhs-action 📼 <actions@github.com>

0 commit comments

Comments
 (0)