File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
- - feature/*
9
8
pull_request :
10
9
branches :
11
10
- main
11
+ - feature/*
12
12
13
13
jobs :
14
14
test-unix :
@@ -47,12 +47,17 @@ jobs:
47
47
- name : Initialize ripple
48
48
working-directory : app
49
49
run : |
50
+ echo "DEBUG---github.ref_name: ${{ github.ref_name }}"
51
+ echo "DEBUG---PR_BRANCH_NAME: $PR_BRANCH_NAME"
52
+ if [ ${{ github.ref_name }} = "main" ]; then
53
+ VERSION="dev-main"
54
+ else
55
+ VERSION="dev-${{ github.sha }}"
56
+ fi
50
57
composer config repositories.local-plugin path ../
51
58
composer clear-cache
52
59
composer config minimum-stability dev
53
- composer require cloudtay/laravel-ripple:dev-${{ github.sha }}
54
- composer require laravel/octane
55
-
60
+ composer require cloudtay/laravel-ripple:$VERSION
56
61
# 初始化测试路由
57
62
- name : Initialize Test Route
58
63
working-directory : app
Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
- - feature/*
9
8
pull_request :
10
9
branches :
11
10
- main
11
+ - feature/*
12
12
13
13
jobs :
14
14
test-unix :
@@ -46,10 +46,17 @@ jobs:
46
46
- name : Initialize ripple
47
47
working-directory : app
48
48
run : |
49
+ echo "DEBUG---github.ref_name: ${{ github.ref_name }}"
50
+ echo "DEBUG---github.sha: ${{ github.sha }}"
51
+ if [ ${{ github.ref_name }} = "main" ]; then
52
+ VERSION="dev-main"
53
+ else
54
+ VERSION="dev-${{ github.sha }}"
55
+ fi
49
56
composer config repositories.local-plugin path ../
50
57
composer clear-cache
51
58
composer config minimum-stability dev
52
- composer require cloudtay/laravel-ripple:dev-${{ github.sha }}
59
+ composer require cloudtay/laravel-ripple:$VERSION
53
60
# 初始化测试路由
54
61
- name : Initialize Test Route
55
62
working-directory : app
You can’t perform that action at this time.
0 commit comments