Skip to content

Instantly share code, notes, and snippets.

@carbonrobot
Created October 27, 2022 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbonrobot/eade25494b7cd65af567cb0adb980c95 to your computer and use it in GitHub Desktop.
Save carbonrobot/eade25494b7cd65af567cb0adb980c95 to your computer and use it in GitHub Desktop.
Convert Github Actions Set Output to new format
#! /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