Commit 2235918
Update release-drafter/release-drafter action to v7 (jenkinsci#1748)
* Update release-drafter/release-drafter action to v7
* Explicitly use jenkinsci release-drafter.yml configuration
Release drafter v7 no longer accepts .github as a valid extension.
https://github.com/release-drafter/release-drafter/blob/master/docs/configuration-loading.md
provides an example that uses this syntax for config-name and says that
the _extends syntax accepts the same form.
* Use release drafter 7.1.1
Also give the step a name
* Release drafter 7.0.0 uses `with: token` instead of `env: GITHUB_TOKEN` (#25)
The release-drafter/release-drafter#1475 breaking
changes section for release drafter 7.0.0 says:
If you were using a specific access token using env.GITHUB_TOKEN:
$MY_CUSTOM_TOKEN, migrate to the new token: input
jobs:
steps:
# Before
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# After
- uses: release-drafter/release-drafter@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
* Reduce risk of 'No changes' in the changelog by waiting 15 seconds
Issue release-drafter/release-drafter#871
includes this comment:
> PR's associated with commits are coming from GH's GraphQL API, and that
> needs some time to process the same event, that triggered the release
> drafter itself. We added a 15s delay before running the release drafter
> step, ugly but works.
A later comment from the release drafter maintainer says:
> this is high-effort fix with low-effort workaround.
>
> Issue comes from GitHub's Graphql Commit-to-PR relation
> associatedPullRequests, which take some time for github to compute. When
> you push to main and trigger a release-drafter run, you sometimes end
> up being faster than Github's backend and may miss this relation.
>
> To prevent this, simply delay your release-drafter run as @lmagyar suggested.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>1 parent 65dde12 commit 2235918
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
0 commit comments