desc 'Review PullRequest.' lane :review do spm( command: 'test', package_path: 'HaishinKit' ) spm( command: 'test', package_path: 'SRTHaishinKit' ) begin danger( danger_id: 'danger', dangerfile: 'Dangerfile', verbose: true ) rescue StandardError end end desc 'Creates documents.' lane :document do |options| if options[:version] == '' UI.error('Version is a required argument!') next end version = options[:version] Dir.chdir('..') do sh 'git clone git@github.com:HaishinKit/docs.haishinkit.com.git' if Helper.is_ci? sh "git config --global user.email 'action@github.com'" sh "git config --global user.name 'GitHub Action'" end sh "rm -rf ./docs.haishinkit.com/swift/#{version}" sh <