Retry nightly changelog generation. (#20178)
* Retry nightly changelog generation. * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Austin S. Hemmelgarn committed
Apr 25, 2025 at 07:09 UTC
2ce45c93c5beab3cfa3b2366e9a64a8418b36dda
1 file changed
+41
-3
.github/workflows/release.yml
+41
-3
@@ -43,9 +43,45 @@ jobs:
43
${{ github.event.inputs.type }} \
44
${{ github.event.inputs.version }} \
45
${{ secrets.NETDATA_RELEASE_TEST }}
46
- - name: Generate Nightly Changleog
47
- id: nightly-changelog
46
+ - name: Generate Nightly Changelog (attempt 1)
47
+ id: nightly-changelog1
48
if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly'
49
+ continue-on-error: true
50
+ uses: heinrichreimer/github-changelog-generator-action@v2.4
51
+ with:
52
+ bugLabels: IGNOREBUGS
53
+ excludeLabels: "stale,duplicate,question,invalid,wontfix,discussion,no changelog"
54
+ issues: false
55
+ sinceTag: v1.10.0
56
+ token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
57
+ unreleasedLabel: "**Next release**"
58
+ verbose: true
59
+ maxIssues: 500
60
+ - name: Delay Retry
61
+ id: delay1
62
+ if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly' && steps.nightly-changelog1.outcome == 'failure'
63
+ run: sleep 300
64
+ - name: Generate Nightly Changelog (attempt 2)
65
+ id: nightly-changelog2
66
+ if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly' && steps.nightly-changelog1.outcome == 'failure'
67
+ continue-on-error: true
68
+ uses: heinrichreimer/github-changelog-generator-action@v2.4
69
+ with:
70
+ bugLabels: IGNOREBUGS
71
+ excludeLabels: "stale,duplicate,question,invalid,wontfix,discussion,no changelog"
72
+ issues: false
73
+ sinceTag: v1.10.0
74
+ token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
75
+ unreleasedLabel: "**Next release**"
76
+ verbose: true
77
+ maxIssues: 500
78
+ - name: Delay Retry
79
+ id: delay2
80
+ if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly' && steps.nightly-changelog2.outcome == 'failure'
81
+ run: sleep 300
82
+ - name: Generate Nightly Changelog (attempt 3)
83
+ id: nightly-changelog3
84
+ if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly' && steps.nightly-changelog2.outcome == 'failure'
85
uses: heinrichreimer/github-changelog-generator-action@v2.4
86
with:
87
bugLabels: IGNOREBUGS
@@ -102,7 +138,9 @@ jobs:
138
${{ github.repository }}: Failed to prepare changelog.
139
Checkout: ${{ steps.checkout.outcome }}
140
Prepare base ref: ${{ steps.target.outcome }}
105
- Generate nightly changelog: ${{ steps.nightly-changelog.outcome }}
141
+ Generate nightly changelog (attempt 1): ${{ steps.nightly-changelog1.outcome }}
142
+ Generate nightly changelog (attempt 2): ${{ steps.nightly-changelog2.outcome }}
143
+ Generate nightly changelog (attempt 3): ${{ steps.nightly-changelog3.outcome }}
144
Generate release changelog: ${{ steps.release-changelog.outcome }}
145
Commit changes: ${{ steps.commit.outcome }}
146
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}