mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
ci/github-script/bot: don't attempt to fetch pagination cursor if it's expired
I fixed this for the maintainer maps, but the artifact that was causing the
particular issue that prompted me to try to fix it was actually the
pagination cursor. So fix that too.
Related: #464046.
(cherry picked from commit 74c008760e)
This commit is contained in:
committed by
github-actions[bot]
parent
1813b4b833
commit
0eb7f2db8d
@@ -609,7 +609,7 @@ module.exports = async ({ github, context, core, dry }) => {
|
||||
).data.artifacts[0]
|
||||
|
||||
// If the artifact is not available, the next iteration starts at the beginning.
|
||||
if (artifact) {
|
||||
if (artifact && !artifact.expired) {
|
||||
stats.artifacts++
|
||||
|
||||
const { downloadPath } = await artifactClient.downloadArtifact(
|
||||
|
||||
Reference in New Issue
Block a user