Skip to content

Commit d432508

Browse files
committed
Update generated GitHub Actions workflow files [skip actions]
1 parent e61c423 commit d432508

6 files changed

Lines changed: 62 additions & 18 deletions

File tree

.github/workflows/release-train-build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
22
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
33

44
name: "Release Train – Build"
@@ -27,17 +27,22 @@ jobs:
2727
name: "Build Release"
2828
runs-on: "ubuntu22-2-8"
2929
steps:
30+
- name: "Prevent Re-runs"
31+
id: "prevent-re-runs"
32+
run: |-
33+
if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
34+
echo "Re-runs are prohibited. Use the 'Release Train – Retry' workflow to retry build failures"
35+
exit 1
36+
fi
3037
- name: "Set up Java"
3138
id: "set-up-java"
32-
uses: "actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520" # 5.4.0
39+
uses: "actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95" # v5.6.0
3340
with:
3441
distribution: "liberica"
3542
java-version: "17"
3643
- name: "Check Out Code"
3744
id: "check-out-code"
38-
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # 7.0.0
39-
with:
40-
ref: "${{ github.ref }}"
45+
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0
4146
- name: "Build Release"
4247
id: "build-release"
4348
uses: "./.github/actions/release-train-build"
@@ -50,21 +55,21 @@ jobs:
5055
RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_USERNAME }}"
5156
- name: "Upload Deployment Repository"
5257
id: "upload-deployment-repository"
53-
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
58+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1
5459
with:
5560
name: "deployment-repository"
5661
path: "deployment-repository/**"
5762
- name: "Upload Deployment Spec"
5863
id: "upload-deployment-spec"
59-
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
64+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1
6065
with:
6166
archive: "false"
6267
if-no-files-found: "ignore"
6368
name: "deployment-spec"
6469
path: ".github/actions/release-train-build/deployment-spec.yml"
6570
- name: "Save Build System Caches"
6671
id: "save-build-system-caches"
67-
uses: "actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # 6.1.0
72+
uses: "actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # v6.1.0
6873
with:
6974
key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}"
7075
path: "~/.m2/repository"

.github/workflows/release-train-join.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
22
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
33

44
name: "Release Train – Join"

.github/workflows/release-train-leave.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
22
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
33

44
name: "Release Train – Leave"

.github/workflows/release-train-ready.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
22
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
33

44
name: "Release Train – Ready"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
2+
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
3+
4+
name: "Release Train – Retry"
5+
run-name: "${{ inputs.release-train }} – Retry"
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+
trigger-retry:
22+
name: "Trigger Retry"
23+
runs-on: "ubuntu-latest"
24+
steps:
25+
- name: "Trigger Retry"
26+
id: "trigger-retry"
27+
env:
28+
GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}"
29+
run: |-
30+
gh workflow run retry \
31+
--repo ${{ inputs.release-train-repository }} \
32+
--ref ${{ inputs.release-train }} \
33+
--field release-branch=${{ github.ref_name }} \
34+
--field release-repository=${{ github.repository }}

.github/workflows/release-train-test.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by github-actions-workflow-generator 0.0.5. Do not edit.
1+
# This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit.
22
# To update it, modify .github/workflow-generator.yml as needed and re-run the generator.
33

44
name: "Release Train – Test"
@@ -27,20 +27,25 @@ jobs:
2727
name: "Test Release"
2828
runs-on: "ubuntu22-2-8"
2929
steps:
30+
- name: "Prevent Re-runs"
31+
id: "prevent-re-runs"
32+
run: |-
33+
if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then
34+
echo "Re-runs are prohibited. Use the 'Release Train – Retry' workflow to retry test failures"
35+
exit 1
36+
fi
3037
- name: "Set up Java"
3138
id: "set-up-java"
32-
uses: "actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520" # 5.4.0
39+
uses: "actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95" # v5.6.0
3340
with:
3441
distribution: "liberica"
3542
java-version: "17"
3643
- name: "Check Out Code"
3744
id: "check-out-code"
38-
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # 7.0.0
39-
with:
40-
ref: "${{ github.ref }}"
45+
uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0
4146
- name: "Restore Build System Caches"
4247
id: "restore-build-system-caches"
43-
uses: "actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # 6.1.0
48+
uses: "actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # v6.1.0
4449
with:
4550
key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}"
4651
path: "~/.m2/repository"
@@ -70,7 +75,7 @@ jobs:
7075
- name: "Upload Build System Reports"
7176
id: "upload-build-system-reports"
7277
if: "${{ failure() }}"
73-
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1
78+
uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1
7479
with:
7580
name: "build-system-reports"
7681
path: |-

0 commit comments

Comments
 (0)