Skip to content

Instantly share code, notes, and snippets.

@managedkaos
Last active December 30, 2024 19:19
Show Gist options
  • Save managedkaos/0a9933e2b33029166e075a097b8102d2 to your computer and use it in GitHub Desktop.
Save managedkaos/0a9933e2b33029166e075a097b8102d2 to your computer and use it in GitHub Desktop.
# gh api repos/{owner}/{repo}/releases
gh api repos/golangci/golangci-lint-action/releases | jq -r .[0].name
# returns latest release name, ie: v6.1.1
for i in $(find . -type d -name workflows | grep .github);
do
for j in $(ls ${i}/*.yml);
do
echo $j;
grep "uses:" $j;
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment