Skip to content

Instantly share code, notes, and snippets.

@zackproser
Last active March 15, 2021 22:16
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 zackproser/a3a759e3474b43336d5f4504b48888f1 to your computer and use it in GitHub Desktop.
Save zackproser/a3a759e3474b43336d5f4504b48888f1 to your computer and use it in GitHub Desktop.
circle-ci-workflows-upgrade.sh
#!/usr/bin/env bash
echo "Upgrading CircleCI workflows syntax to 2..."
yq w -i .circleci/config.yml 'workflows.version' 2
# remove stray merge tags from the final output
sed -i '/!!merge /d' .circleci/config.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment