Skip to content

Commit c574b43

Browse files
committed
updated
1 parent e833e4a commit c574b43

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ on:
88
- reopened
99
branches:
1010
- 'preview/**'
11-
- 'release/**'
12-
paths:
13-
- '**'
11+
- 'release/**'
1412

1513
permissions:
1614
actions: read

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "is-preview:${{ startsWith(github.ref_name, 'preview') }}"
4545
4646
validate-release:
47-
name: 'Validate release branch'
47+
name: 'Validate release'
4848
needs: [workflow-variables]
4949
runs-on: ubuntu-latest
5050
steps:
@@ -53,6 +53,11 @@ jobs:
5353
run: |
5454
echo "This workflow can only be run on 'release/**' or 'preview/**' branches."
5555
exit 1
56+
- name: 'Validate pull request merged'
57+
if: ${{ github.event.pull_request.merged != true }}
58+
run: |
59+
echo "This workflow can only be run on merged pull requests."
60+
exit 1
5661
5762
versioning:
5863
name: 'Extract version from branch'

0 commit comments

Comments
 (0)