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 e3a6209 commit 4f7197b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -72,4 +78,4 @@ jobs:

- name: Push updates
run: |
git push origin the-sacrifice
git push origin/release-candidate

0 comments on commit 4f7197b

Please sign in to comment.