Skip to content

Commit cffe8ec

Browse files
committed
chore: enhance publish workflow
1 parent b0d4c4e commit cffe8ec

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/tasty-bears-do.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openscript-ch-website": patch
3+
---
4+
5+
Use pull request target to trigger deployment

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Publish
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types:
66
- closed
77
branches:
88
- master
99

1010
jobs:
1111
publish:
12-
if: github.event.pull_request.merged == true && github.head_ref == 'changeset-release/master'
12+
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'changeset-release/master'
1313
name: Publish
1414
runs-on: ubuntu-latest
1515
steps:

0 commit comments

Comments
 (0)