Skip to content

Commit

Permalink
Part of OpenHistoricalMap/issues#786, adjusting workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Jul 11, 2024
1 parent e230464 commit ce1d54e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,20 @@ jobs:
- name: List all branches
run: |
git branch --all | egrep 'main|master|sacrifice'
git diff origin/main --name-only
- name: Make our scripts executable
run: chmod +x ./scripts/*.sh
- name: Preserve upstream docs
run: ./scripts/preserve_upstream_docs.sh

- name: Do a diff and start a merge
- name: Start the merge
run: |
git diff main
git diff upstream/master
git merge --no-ff --no-commit upstream/master
git status
- name: Continue the merge where there are no concerns
run: ./scripts/upstream_sync.sh

- name: Push updates
run: |
git push origin the-sacrifice
4 changes: 0 additions & 4 deletions scripts/upstream_sync.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash




concerns=('js/ide.js' 'js/map.ts')
for i in $(git diff --name-only --diff-filter=U --relative);do
echo "$i"
Expand All @@ -19,4 +16,3 @@ if [ -n "$(git status --porcelain)" ]; then
iso=$(date -Iminutes)
git commit -m "Merge upstream ("$iso")."
fi
git push origin the-sacrifice

0 comments on commit ce1d54e

Please sign in to comment.