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
e3a6209
commit 4f7197b
Showing
1 changed file
with
12 additions
and
6 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 |
---|---|---|
|
@@ -36,27 +36,33 @@ jobs: | |
- name: List all branches | ||
run: | | ||
git branch --all | egrep 'main|master|sacrifice' | ||
git branch --all | egrep 'main|master|sacrifice|candidate' | ||
- name: Delete previous sacrificial branch | ||
run: | | ||
git branch --remote -D origin/the-sacrifice | ||
git branch --remote -D origin/release-candidate | ||
- name: List all branches | ||
run: | | ||
git branch --all | egrep 'main|master|sacrifice' | ||
- name: Check out new sacrificial branch | ||
- name: Create 'release-candidate', our new sacrificial branch | ||
uses: peterjgrainger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
branch: 'the-sacrifice' | ||
|
||
- name: List all branches | ||
run: | | ||
git branch --all | egrep 'main|master|sacrifice|candidate' | ||
- name: Check out 'release-candidate', our new sacrificial branch | ||
uses: actions/checkout@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
ref: 'release-candidate' | ||
fetch-depth: 0 | ||
|
||
- name: Make our scripts executable | ||
run: chmod +x ./scripts/*.sh | ||
- name: Preserve upstream docs | ||
|
@@ -72,4 +78,4 @@ jobs: | |
|
||
- name: Push updates | ||
run: | | ||
git push origin the-sacrifice | ||
git push origin/release-candidate |