Created
October 27, 2022 19:59
-
-
Save carbonrobot/eade25494b7cd65af567cb0adb980c95 to your computer and use it in GitHub Desktop.
Convert Github Actions Set Output to new format
This file contains hidden or 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
#! /bin/bash | |
for i in $(grep -rv '^#' | grep '::set-output name=' | cut -d':' -f1); do | |
sed -i '' -e 's/::set-output name=\([^:]*\)::\(.*\)/\1=\2 >> ${GITHUB_OUTPUT}/' "${i}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment