Repository navigation
Fix octokit returning weird results from listWorkflowRuns - #95
Conversation
|
Ok. This is not working as expected and I guess the data returned from GitHub contains wrong statuses of workflow runs but I have to check those yet |
|
@dawidd6 this change erd0s@6f3720f will stop you from being able to do "completed,success" right? Just one of the two? |
|
Yep. According to API docs |
|
Maybe like this? erd0s@9073df9, also taking into account comments from @vmirkin-proag |
|
Fixed, thanks |
|
Hello guys, after fix it finds the oldest successful workflow run..., and according to my settings github automatically deletes such old artifacts. Can you have a look again? |
* Add pagination when listing all artifacts (dawidd6#90) Co-authored-by: Nick DeGroot <1966472+nickthegroot@users.noreply.github.com> * main: remove ';' * README: fix * main: throw if no runID * action: only success * README: update * workflows: test empty conclusion * Fix octokit returning weird results from listWorkflowRuns (dawidd6#95) Closes: dawidd6#93 Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com> * README: remove stray dot * download aritfact from latest run which upload an artifact (dawidd6#88) Co-authored-by: Nick DeGroot <nbdegroot1@gmail.com> Co-authored-by: Nick DeGroot <1966472+nickthegroot@users.noreply.github.com> Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com> Co-authored-by: Dirk <dirks@seatfrog.com> Co-authored-by: Tailong <54169577+shitlsh@users.noreply.github.com>
Closes: dawidd6#93 Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
The runs endpoint is documented nowhere as newest-first and has twice returned otherwise (#95, #424), making the action pick a stale run whose artifacts have expired. Sort candidate runs newest-first ourselves and fetch 100 per page, so a misordered page cannot select an old run. Stop counting expired artifacts towards check_artifacts and search_artifacts: an expired artifact is not downloadable, so a run that only has those is not a usable candidate. Also read dry_run with getBooleanInput, as the string "false" was truthy and silently enabled dry run mode. Refs #428 Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This is the gist, what you think?