forked from tyrasd/overpass-turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of OpenHistoricalMap/issues#786, adjusting workflow.
- Loading branch information
1 parent
570759f
commit b362835
Showing
1 changed file
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |