Skip to content

Commit 75c4193

Browse files
authored
Merge pull request #92 from mvallim/feature/update-workflow
Auto-created pull request into `feature/update-workflow` from `develop`
2 parents aaf9ecb + 071a37c commit 75c4193

4 files changed

Lines changed: 17 additions & 7 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

.github/workflows/ci-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Create Pull Request (${{ inputs.type }})
6060
uses: peter-evans/create-pull-request@v7
6161
with:
62-
title: Auto-created pull request from `${{ github.ref_name }}` to `${{ inputs.target-branch }}`
62+
title: Auto-created pull request into `${{ github.ref_name }}` from `${{ inputs.target-branch }}`
6363
token: ${{ secrets.GITHUB_TOKEN }}
6464
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
6565
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>

0 commit comments

Comments
 (0)