Skip to content

Commit

Permalink
Merge pull request #373 from sul-dlss/renameMain
Browse files Browse the repository at this point in the history
Rename the main branch
  • Loading branch information
hudajkhan authored Jan 8, 2024
2 parents a61fc6d + c66ab0d commit 306750e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
tests:
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline {
}

when {
branch 'master'
branch 'main'
}

steps {
Expand Down
8 changes: 6 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
set :repo_url, 'https://github.com/sul-dlss/sul-directory.git'
set :user, 'directory'

# Default branch is :master
ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call unless ENV['DEPLOY']
# Default branch is :master so we need to update to main
if ENV['DEPLOY']
set :branch, 'main'
else
ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
end

# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/opt/app/#{fetch(:user)}/#{fetch(:user)}"
Expand Down

0 comments on commit 306750e

Please sign in to comment.