Skip to content

Commit

Permalink
Need to mark github directory as safe if we're inside CI
Browse files Browse the repository at this point in the history
Otherwise git doesn't work
  • Loading branch information
sammyd committed Jan 16, 2024
1 parent d27bdbf commit c7fb8cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/robles
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/application'

if GITHUB_WORKSPACE.present?
# Add the workspace as a safe directory to global git if we're inside a GitHub Action
Git.global_config('safe.directory', GITHUB_WORKSPACE)
end

begin
RoblesCli.start(ARGV)
rescue Exception => e # rubocop:disable Lint/RescueException
Expand Down

0 comments on commit c7fb8cb

Please sign in to comment.