Skip to content

Commit 755e0dd

Browse files
authored
chore: use k-paxian/dart-package-publisher@master to publish to pub.dev (#2269)
1 parent ea0a904 commit 755e0dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/actions/pub/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ get_local_package_version() {
6565
GET_OUTPUT=`dart pub get`
6666
DEPS_OUTPUT=`dart pub deps`
6767
fi
68-
PACKAGE_INFO=`echo "$DEPS_OUTPUT" | perl -0777 -pe 's/(└|│|(?<![\d])-)(?!rc\.1).+//s' | head -n 3`
68+
PACKAGE_INFO=`echo "$DEPS_OUTPUT" | perl -0777 -pe 's/(└|│|(?<![\d])-|├).+//s' | head -n 3`
6969
trace "$PACKAGE_INFO"
7070
DART_VERSION=`echo "$PACKAGE_INFO" | perl -n -e'/^Dart SDK (.*)$/ && print $1'`
7171
FLUTTER_VERSION=`echo "$PACKAGE_INFO" | perl -n -e'/^Flutter SDK (.*)$/ && print $1'`

.github/workflows/on_pr_closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
- name: Publish Dart Package 🚢
5454
id: publish
55-
uses: ./.github/actions/pub
55+
uses: k-paxian/dart-package-publisher@master
5656
with:
5757
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
5858
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}

.github/workflows/run_pub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fi
3333
- name: Publish Dart Package 🚢
3434
id: publish
35-
uses: ./.github/actions/pub
35+
uses: k-paxian/dart-package-publisher@master
3636
with:
3737
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
3838
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}

0 commit comments

Comments
 (0)