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 8, 2024
1 parent 25e084a commit 4729b69
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
run:
shell: bash
steps:
- name: Check out our repository to the runner
- name: Check out our repository
uses: actions/checkout@v4
- name: Check out the upstream repository to the runner
- name: Check out the upstream repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPSTREAM: https://github.com/tyrasd/overpass-turbo
Expand Down
34 changes: 17 additions & 17 deletions scripts/upstream_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ if [ -n "$(git status --porcelain)" ]; then
git commit -m 'Preserving upstream markdown & text files.'
fi

git merge --no-ff --no-commit upstream/master
concerns=('js/ide.js' 'js/map.ts')
for i in $(git diff --name-only --diff-filter=U --relative);do
echo "$i"
for c in "${concerns[@]}";do
echo "$c"
if [[ $i != $c ]];then
git checkout --theirs -- $i
git add $i
fi
done
done

if [ -n "$(git status --porcelain)" ]; then
iso=$(date -Iminutes)
git commit -m "Merge upstream ("$iso")."
fi
#git merge --no-ff --no-commit upstream/master
#concerns=('js/ide.js' 'js/map.ts')
#for i in $(git diff --name-only --diff-filter=U --relative);do
# echo "$i"
# for c in "${concerns[@]}";do
# echo "$c"
# if [[ $i != $c ]];then
# git checkout --theirs -- $i
# git add $i
# fi
# done
#done
#
#if [ -n "$(git status --porcelain)" ]; then
# iso=$(date -Iminutes)
# git commit -m "Merge upstream ("$iso")."
#fi

0 comments on commit 4729b69

Please sign in to comment.