-
-
Save rtyley/82b770c98b435adb75b6b52cf2d92494 to your computer and use it in GitHub Desktop.
Update Guardian projects using gha-scala-library-release-workflow, add .tool-versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
xargs -I GU_REPO gh api --method PUT /repos/guardian/GU_REPO/contents/.tool-versions \ | |
--field message="Add Java version - see https://github.com/guardian/gha-scala-library-release-workflow/pull/36" \ | |
--field content="$( echo "java corretto-21.0.3.9.1" | base64)" < "$1" | |
echo "Repos still needing the file:" | |
xargs -I GU_REPO sh -c 'gh api --silent --method GET /repos/guardian/GU_REPO/contents/.tool-versions || echo GU_REPO' < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment