Skip to content

Commit 758cd23

Browse files
committed
ci: update workflow
1 parent e95fc87 commit 758cd23

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

.github/workflows/cd-integration.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Build, Gates and Pull Request
22

33
on:
4-
push:
5-
branches:
4+
pull_request_target:
5+
branches:
66
- develop
7+
types:
8+
- closed
9+
- synchronize
710

811
permissions:
912
contents: write
1013
pull-requests: write
1114

1215
jobs:
1316
variables:
17+
if: ${{ github.event.pull_request.merged == true }}
1418
runs-on: ubuntu-latest
1519
outputs:
1620
version: ${{ steps.environment.outputs.version }}

.github/workflows/cd-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Build and Publish Release
22

33
on:
4-
push:
5-
branches:
4+
pull_request_target:
5+
branches:
66
- master
7+
types:
8+
- closed
79

810
permissions:
911
contents: write

.github/workflows/cd-snapshot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Build, Publish Snapshot and Pull Request
22

33
on:
4-
push:
5-
branches:
4+
pull_request_target:
5+
branches:
66
- release/**
7+
types:
8+
- closed
9+
- synchronize
710

811
permissions:
912
contents: write
1013
pull-requests: write
1114

1215
jobs:
1316
ci:
17+
if: ${{ github.event.pull_request.merged == true }}
1418
uses: ./.github/workflows/ci-maven.yml
1519
secrets: inherit
1620

0 commit comments

Comments
 (0)