Skip to content

Commit 5866d66

Browse files
committed
Update generated GitHub Actions workflow files
1 parent 18e4323 commit 5866d66

7 files changed

Lines changed: 321 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Build Release
2+
runs:
3+
using: composite
4+
steps:
5+
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-build@348109524f9790dc1e20d48043fb1ef4765373b8
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Test Release
2+
runs:
3+
using: composite
4+
steps:
5+
- uses: spring-cloud/spring-cloud-github-actions/.github/actions/release-train-test@3844cdcd9639d7dfdfaa5bb8affb730c54ddfee2
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Build"
5+
run-name: "${{ inputs.callback-ref }} – Build"
6+
"on":
7+
workflow_dispatch:
8+
inputs:
9+
callback:
10+
description: "Repository to which a callback should be made upon completion"
11+
required: true
12+
type: "string"
13+
callback-ref:
14+
description: "Ref in the callback repository to which a callback should be made upon completion"
15+
required: true
16+
type: "string"
17+
release-train-maven-repository-url:
18+
description: "URL of a Maven repository to be used to resolve artifacts of projects earlier in the train"
19+
required: true
20+
type: "string"
21+
permissions:
22+
contents: "read"
23+
concurrency:
24+
group: "${{ github.workflow }}-${{ github.ref }}"
25+
jobs:
26+
build-release:
27+
name: "Build Release"
28+
runs-on: "ubuntu22-2-8"
29+
steps:
30+
- name: "Set up Java"
31+
id: "set-up-java"
32+
uses: "actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520" # 5.4.0
33+
with:
34+
distribution: "liberica"
35+
java-version: "17"
36+
- name: "Check Out Code"
37+
id: "check-out-code"
38+
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # 7.0.0
39+
with:
40+
ref: "${{ github.ref }}"
41+
- name: "Build Release"
42+
id: "build-release"
43+
uses: "./.github/actions/release-train-build"
44+
env:
45+
COMMERCIAL_REPO_PASSWORD: "${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}"
46+
COMMERCIAL_REPO_USERNAME: "${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}"
47+
RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_PASSWORD }}"
48+
RELEASE_TRAIN_MAVEN_REPOSITORY_URL: "${{ inputs.release-train-maven-repository-url }}"
49+
RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_USERNAME }}"
50+
- name: "Upload Deployment Repository"
51+
id: "upload-deployment-repository"
52+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
53+
with:
54+
name: "deployment-repository"
55+
path: "deployment-repository/**"
56+
- name: "Upload Deployment Spec"
57+
id: "upload-deployment-spec"
58+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
59+
with:
60+
archive: "false"
61+
if-no-files-found: "ignore"
62+
name: "deployment-spec"
63+
path: ".github/actions/release-train-build/deployment-spec.yml"
64+
- name: "Save Build System Caches"
65+
id: "save-build-system-caches"
66+
uses: "actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # 6.1.0
67+
with:
68+
key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}"
69+
path: "~/.m2/repository"
70+
- name: "Send Callback"
71+
id: "send-callback"
72+
if: "${{ !cancelled() }}"
73+
env:
74+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
75+
run: |-
76+
gh workflow run callback \
77+
--repo ${{ inputs.callback }} \
78+
--ref ${{ inputs.callback-ref }} \
79+
--field commit-hash=${{ steps.check-out-code.outputs.commit }} \
80+
--field deployment-repository-artifact-identifier=${{ steps.upload-deployment-repository.outputs.artifact-id }} \
81+
--field deployment-spec-artifact-identifier=${{ steps.upload-deployment-spec.outputs.artifact-id }} \
82+
--field release-branch=${{ github.ref_name }} \
83+
--field release-repository=${{ github.repository }} \
84+
--field result=${{ job.status == 'success' && 'built' || 'build-failed' }} \
85+
--field workflow-run-url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Join"
5+
run-name: "${{ inputs.release-train }} – Join"
6+
"on":
7+
workflow_dispatch:
8+
inputs:
9+
deployment-destination:
10+
description: "Destination to which the release should be deployed"
11+
options:
12+
- "Maven Central"
13+
- "Spring Enterprise"
14+
required: true
15+
type: "choice"
16+
release-train:
17+
description: "Release train"
18+
required: true
19+
type: "string"
20+
release-train-repository:
21+
default: "spring-io/release-train"
22+
description: "Release train repository"
23+
required: true
24+
type: "string"
25+
permissions:
26+
contents: "none"
27+
jobs:
28+
join-release-train:
29+
name: "Join Release Train"
30+
runs-on: "ubuntu-latest"
31+
steps:
32+
- name: "Join Release Train"
33+
id: "join-release-train"
34+
env:
35+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
36+
run: |-
37+
run_url=$(
38+
gh workflow run join \
39+
--repo ${{ inputs.release-train-repository }} \
40+
--ref ${{ inputs.release-train }} \
41+
--field commit-hash=${{ github.sha }} \
42+
--field deployment-destination=${{ inputs.deployment-destination == 'Maven Central' && 'maven-central' || 'spring-enterprise' }} \
43+
--field release-branch=${{ github.ref_name }} \
44+
--field release-repository=${{ github.repository }}
45+
)
46+
echo "Dispatched workflow run. Waiting for $run_url to complete."
47+
run_id=${run_url##*/}
48+
watch_exit_code=0
49+
gh run watch $run_id --repo ${{ inputs.release-train-repository }} --exit-status --interval=3 > /dev/null 2>&1 || watch_exit_code=$?
50+
if [[ $watch_exit_code -eq 0 ]]; then
51+
echo "Workflow run succeeded."
52+
else
53+
echo "Workflow run failed."
54+
fi
55+
exit $watch_exit_code
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Leave"
5+
run-name: "${{ inputs.release-train }} – Leave"
6+
"on":
7+
workflow_dispatch:
8+
inputs:
9+
release-train:
10+
description: "Release train"
11+
required: true
12+
type: "string"
13+
release-train-repository:
14+
default: "spring-io/release-train"
15+
description: "Release train repository"
16+
required: true
17+
type: "string"
18+
permissions:
19+
contents: "none"
20+
jobs:
21+
leave:
22+
name: "Leave"
23+
runs-on: "ubuntu-latest"
24+
steps:
25+
- name: "Leave"
26+
id: "leave"
27+
env:
28+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
29+
run: |-
30+
run_url=$(
31+
gh workflow run leave \
32+
--repo ${{ inputs.release-train-repository }} \
33+
--ref ${{ inputs.release-train }} \
34+
--field release-branch=${{ github.ref_name }} \
35+
--field release-repository=${{ github.repository }}
36+
)
37+
echo "Dispatched workflow run. Waiting for $run_url to complete."
38+
run_id=${run_url##*/}
39+
watch_exit_code=0
40+
gh run watch $run_id --repo ${{ inputs.release-train-repository }} --exit-status --interval=3 > /dev/null 2>&1 || watch_exit_code=$?
41+
if [[ $watch_exit_code -eq 0 ]]; then
42+
echo "Workflow run succeeded."
43+
else
44+
echo "Workflow run failed."
45+
fi
46+
exit $watch_exit_code
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Ready"
5+
run-name: "${{ inputs.release-train }} – Ready"
6+
"on":
7+
workflow_dispatch:
8+
inputs:
9+
release-train:
10+
description: "Release train"
11+
required: true
12+
type: "string"
13+
release-train-repository:
14+
default: "spring-io/release-train"
15+
description: "Release train repository"
16+
required: true
17+
type: "string"
18+
permissions:
19+
contents: "none"
20+
jobs:
21+
ready:
22+
name: "Ready"
23+
runs-on: "ubuntu-latest"
24+
steps:
25+
- name: "Ready"
26+
id: "ready"
27+
env:
28+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
29+
run: |-
30+
run_url=$(
31+
gh workflow run ready \
32+
--repo ${{ inputs.release-train-repository }} \
33+
--ref ${{ inputs.release-train }} \
34+
--field commit-hash=${{ github.sha }} \
35+
--field release-branch=${{ github.ref_name }} \
36+
--field release-repository=${{ github.repository }}
37+
)
38+
echo "Dispatched workflow run. Waiting for $run_url to complete."
39+
run_id=${run_url##*/}
40+
watch_exit_code=0
41+
gh run watch $run_id --repo ${{ inputs.release-train-repository }} --exit-status --interval=3 > /dev/null 2>&1 || watch_exit_code=$?
42+
if [[ $watch_exit_code -eq 0 ]]; then
43+
echo "Workflow run succeeded."
44+
else
45+
echo "Workflow run failed."
46+
fi
47+
exit $watch_exit_code
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Test"
5+
run-name: "${{ inputs.callback-ref }} – Test"
6+
"on":
7+
workflow_dispatch:
8+
inputs:
9+
callback:
10+
description: "Repository to which a callback should be made upon completion"
11+
required: true
12+
type: "string"
13+
callback-ref:
14+
description: "Ref in the callback repository to which a callback should be made upon completion"
15+
required: true
16+
type: "string"
17+
release-train-maven-repository-url:
18+
description: "URL of a Maven repository to be used to resolve artifacts of projects earlier in the train"
19+
required: true
20+
type: "string"
21+
permissions:
22+
contents: "read"
23+
concurrency:
24+
group: "${{ github.workflow }}-${{ github.ref }}"
25+
jobs:
26+
test-release:
27+
name: "Test Release"
28+
runs-on: "ubuntu22-2-8"
29+
steps:
30+
- name: "Set up Java"
31+
id: "set-up-java"
32+
uses: "actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520" # 5.4.0
33+
with:
34+
distribution: "liberica"
35+
java-version: "17"
36+
- name: "Check Out Code"
37+
id: "check-out-code"
38+
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # 7.0.0
39+
with:
40+
ref: "${{ github.ref }}"
41+
- name: "Restore Build System Caches"
42+
id: "restore-build-system-caches"
43+
uses: "actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # 6.1.0
44+
with:
45+
key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}"
46+
path: "~/.m2/repository"
47+
- name: "Test Release"
48+
id: "test-release"
49+
uses: "./.github/actions/release-train-test"
50+
env:
51+
COMMERCIAL_REPO_PASSWORD: "${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}"
52+
COMMERCIAL_REPO_USERNAME: "${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}"
53+
RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_PASSWORD }}"
54+
RELEASE_TRAIN_MAVEN_REPOSITORY_URL: "${{ inputs.release-train-maven-repository-url }}"
55+
RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_USERNAME }}"
56+
- name: "Send Callback"
57+
id: "send-callback"
58+
if: "${{ !cancelled() }}"
59+
env:
60+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
61+
run: |-
62+
gh workflow run callback \
63+
--repo ${{ inputs.callback }} \
64+
--ref ${{ inputs.callback-ref }} \
65+
--field commit-hash=${{ steps.check-out-code.outputs.commit }} \
66+
--field release-branch=${{ github.ref_name }} \
67+
--field release-repository=${{ github.repository }} \
68+
--field result=${{ job.status == 'success' && 'tested' || 'test-failed' }} \
69+
--field workflow-run-url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
70+
- name: "Upload Build System Reports"
71+
id: "upload-build-system-reports"
72+
if: "${{ failure() }}"
73+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
74+
with:
75+
name: "build-system-reports"
76+
path: |-
77+
**/target/surefire-reports
78+
**/target/failsafe-reports

0 commit comments

Comments
 (0)