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 c96c38f commit 4c5c8b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
git config --global user.email "[email protected]"
git remote add upstream "${UPSTREAM}"
git fetch upstream master
git branch -D the-sacrifice &>/dev/null
git checkout -b the-sacrifice
- name: Make our script executable
run: chmod +x ./scripts/upstream_sync.sh
- name: Run sync script
Expand Down
3 changes: 3 additions & 0 deletions scripts/upstream_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# As we enter this script we have created `the-sacrifice` from our `main` branch and
# have `git fetch`ed upstream/master.

git branch -D the-sacrifice &>/dev/null
git checkout -b the-sacrifice

if [ ! -d "upstream" ]; then
mkdir upstream
fi
Expand Down

0 comments on commit 4c5c8b8

Please sign in to comment.