File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ jobs:
33
33
- name : ' Build for platform: ${{ matrix.target-platform }}'
34
34
run : ' mvn -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify'
35
35
- name : Assign build.version.properties to env variable
36
- if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
36
+ if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM && !contains(github.head_ref, 'staging')
37
37
run : cat site/target/build.version.properties >> $GITHUB_ENV
38
38
- name : ' Deploy build ${{ env.build_version_full }} for PR${{ github.event.pull_request.number }}'
39
- if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
39
+ if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM && !contains(github.head_ref, 'staging')
40
40
uses : actions/upload-artifact@v2
41
41
with :
42
42
name : EasyShell-${{ env.build_version_full }}
43
43
path : site/target/repository
44
44
45
45
deploy-testing :
46
- if : github.event_name == 'pull_request' && contains(github.head_ref, 'testing ')
46
+ if : github.event_name == 'pull_request' && contains(github.head_ref, 'staging ')
47
47
runs-on : ubuntu-latest
48
48
needs : [platform]
49
49
steps :
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ jobs:
20
20
java-version : ' 11'
21
21
distribution : ' temurin'
22
22
cache : maven
23
- - name : ' Build testing for default platform'
23
+ - name : Build testing for default platform
24
24
run : ' mvn -Dsite.dir=testing clean verify'
25
25
- name : Assign build.version.properties to env variable
26
26
run : cat site/target/build.version.properties >> $GITHUB_ENV
27
- - name : ' Create Pull Request'
27
+ - name : Create Pull Request
28
28
uses : peter-evans/create-pull-request@v3
29
29
with :
30
30
commit-message : ' [${{ env.build_version_unqualified }}] testing build ${{ env.build_version_full }}'
45
45
Version ${{ env.build_version_unqualified }}
46
46
milestone : ${{ env.build_version_milestone }}
47
47
delete-branch : true
48
+ branch : staging
48
49
base : main
You can’t perform that action at this time.
0 commit comments