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 570759f commit b362835
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,12 @@ jobs:
shell: bash
steps:
- name: Check out our repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Delete previous sacrificial branch
# run: |
# git branch -D 'the-sacrifice'
- name: Create new sacrificial branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peterjgrainger/[email protected]
with:
branch: 'the-sacrifice'
- name: Check out sacrificial branch
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'the-sacrifice'

- name: Check out upstream master
env:
UPSTREAM: https://github.com/tyrasd/overpass-turbo
Expand All @@ -43,7 +30,26 @@ jobs:
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
run: ./scripts/upstream_sync.sh
- name: List all branches
run: |
git branch --all
# - name: Delete previous sacrificial branch
# run: |
# git branch -D 'the-sacrifice'
# - name: Create new sacrificial branch
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# uses: peterjgrainger/[email protected]
# with:
# branch: 'the-sacrifice'
# - name: Check out sacrificial branch
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# ref: 'the-sacrifice'
# - name: Make our script executable
# run: chmod +x ./scripts/upstream_sync.sh
# - name: Run sync script
# run: ./scripts/upstream_sync.sh

0 comments on commit b362835

Please sign in to comment.