Skip to content

Commit b549b72

Browse files
Fix publishing
1 parent 04d43c7 commit b549b72

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: publish
22

33
on:
4-
push:
4+
pull_request:
5+
types: [closed]
56
branches:
67
- master
7-
8+
89
jobs:
910
publish:
1011
timeout-minutes: 4
@@ -28,7 +29,7 @@ jobs:
2829
id: pubspec
2930
run: |
3031
set +e
31-
git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep '${{ matrix.package }}/pubspec.yaml'
32+
git diff-tree --no-commit-id --name-only -r HEAD~1 ${{ github.sha }} | grep '${{ matrix.package }}/pubspec.yaml'
3233
echo ::set-output name=changed::$?
3334
set -e
3435
- name: Extract package version

0 commit comments

Comments
 (0)