uoy-trials / library-redcap-api

REDCap API Library for .NET The library provides the ability to interact with REDCap via API calls, e.g Import Records, Export Records etc. This library supports all supported API methods in REDCap.
https://www.nuget.org/packages/RedcapAPI
MIT License
1 stars 0 forks source link

Address failing workflows #7

Closed macb500 closed 5 months ago

macb500 commented 6 months ago

https://github.com/uoy-trials/library-redcap-api/actions

tp1045 commented 5 months ago

https://github.com/orgs/community/discussions/26256

tp1045 commented 5 months ago

Remove old workflow runs using Powershell:

-- Get all the workflows gh api -X GET /repos/uoy-trials/library-redcap-api/actions/runs

image

save runs to delete, id here is specific to the "Publish nuget package.." workflow

$legacyRuns = gh api -X GET /repos/uoy-trials/library-redcap-api/actions/workflows/77110303/runs | jq '.workflow_runs[] | .id'

delete em foreach ($run in $legacyRuns) { gh api -X DELETE /repos/uoy-trials/library-redcap-api/actions/runs/$run }

clean as a whistle (are whistles clean?)

image