Skip to content

Commit 25eb279

Browse files
authored
Add post pr merge workflow to support continuous snapshot deployments (helidon-io#8919)
1 parent ccee4c6 commit 25eb279

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/pr-merge.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Workflow that runs on any push to main.
3+
4+
name: "Post PR Merge"
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
- 'helidon-*.x'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
jobs:
17+
validate:
18+
uses: ./.github/workflows/validate.yml
19+
snapshot:
20+
# Run validation then deploy snapshot release
21+
needs: validate
22+
uses: ./.github/workflows/snapshotrelease.yml

.github/workflows/snapshotrelease.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: "Snapshot Release"
66

77
on:
88
workflow_dispatch:
9+
workflow_call:
910

1011
env:
1112
JAVA_VERSION: '21'

.github/workflows/validate.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
name: "Validate"
66

7-
on: [pull_request, push]
7+
on:
8+
pull_request:
9+
workflow_call:
810

911
env:
1012
JAVA_VERSION: '21'

0 commit comments

Comments
 (0)