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 4729b69 commit 3420456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git remote add upstream "${UPSTREAM}"
git fetch upstream master
- name: Make our script executable
run: chmod +x ./scripts/upstream_sync.sh
- name: Run sync script
Expand Down
8 changes: 3 additions & 5 deletions scripts/upstream_sync.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#!/bin/bash

#
#
#
# As we enter this script we are on the `main` branch and have `get fetch`ed
# upstream/master.

git checkout main
git checkout master
git branch -D the-sacrifice
git checkout -b the-sacrifice
git fetch upstream master

mkdir upstream
for i in $(git ls-tree upstream/master --name-only); do
Expand Down

0 comments on commit 3420456

Please sign in to comment.