Skip to content

Instantly share code, notes, and snippets.

@zackproser
Last active March 15, 2021 22:16
Show Gist options
  • 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