Skip to content

Instantly share code, notes, and snippets.

@khiav223577
Last active February 9, 2021 14:03
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 khiav223577/0e9e2ba42f9ac869ba8a489678a46753 to your computer and use it in GitHub Desktop.
Save khiav223577/0e9e2ba42f9ac869ba8a489678a46753 to your computer and use it in GitHub Desktop.
Migrating from Travis CI to GitHub Actions
# Migrating from Travis CI to GitHub Actions
git checkout -b feature/migrate_from_travis_to_github_actions
rm .travis.yml
ruby -e "File.write('README.md', File.read('README.md').gsub('travis-ci.org', 'github.com').sub('.svg?branch=master', '/workflows/Ruby/badge.svg').sub(/(khiav223577\/\w+)\)/, '\1/actions)'))"
git add .
git commit -m 'remove travis'
ruby -e "Dir['gemfiles/*'].each{|s| File.write(s, File.read(s).gsub(/gem 'simplecov'\r?\n/, %{gem 'simplecov', '< 0.18'\n})) }"
git add .
git commit -m 'downgrades simplecov because of codeclimate/test-reporter#413'
mkdir .github
cp -r ../deep_pluck/.github/workflows/ .github/
git add .
git commit -m 'copy workflows from khiav223577/deep_pluck#42'
------------
記得加 secrtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment