Skip to content

Commit

Permalink
chore(#24): update upstream job
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 29, 2022
1 parent 8295ff4 commit 589d8eb
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/pull-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- feature/24-upstream

jobs:
pull_upstream:
Expand All @@ -21,8 +22,11 @@ jobs:
git config --global user.name "DruxtCI"
- name: Checkout πŸ›Ž
uses: actions/checkout@master
with:
ref: develop
- name: Checkout upstream πŸ›Ž
run: git remote add upstream https://github.com/druxt/quickstart-druxt-site.git && git fetch upstream
- run: git branch --all -v

# @TODO - Move this to after the git diff so it's only done if there's
# any changes to pull in. That will also require stashing of the
Expand All @@ -38,10 +42,22 @@ jobs:
- name: Install Drupal πŸ‘¨πŸ»β€πŸ’»
run: cd drupal && ddev composer install && ddev drush -y tome:install

- name: Rebase upstream develop πŸ›Ž
run: git stash && git rebase -Xours upstream/develop
- name: Various fixes
run: sed -i 's/quickstart-druxtsite/quickstart-druxtsite-tome/g' drupal/.ddev/config.yaml
# - name: Rebase upstream develop πŸ›Ž
# run: git stash && git rebase -X ours upstream/develop

- name: Merge upstream develop πŸ›Ž
run: git stash && git pull -X ours upstream develop --allow-unrelated-histories

# - name: Checkout Upstream (druxt/quickstart-druxt-site) πŸ›Ž
# uses: actions/checkout@master
# with:
# repository: druxt/quickstart-druxt-site
# ref: develop
# path: upstream

- name: Find and Replace strings
run: |
sed -i 's/quickstart-druxtsite/quickstart-druxtsite-tome/g' drupal/.ddev/config.yaml
- name: Reinstall Tome πŸ‘¨πŸ»β€πŸ’»
run: cd drupal && ddev composer require drupal/tome drupal-tome/tome_drush -W
Expand Down

0 comments on commit 589d8eb

Please sign in to comment.