Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Sep 13, 2024
1 parent 63466c6 commit 206a99c
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Delete previous sacrificial branch
run: |
if git show-ref --quiet refs/heads/the-sacrifice; then
if git show-ref --quiet the-sacrifice; then
git branch --remote -D origin/the-sacrifice
fi
Expand All @@ -43,49 +43,41 @@ jobs:
git branch --all | egrep '\/main$|\/master$|sacrifice|candidate'
ls -lR ./scripts/ohm
- name: Check out upstream master
env:
UPSTREAM: https://github.com/hotosm/tasking-manager
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git remote add upstream "${UPSTREAM}"
git fetch upstream master
- name: Check out our repository
uses: actions/checkout@v4
- name: Create 'the-sacrifice', our new sacrificial branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fetch-depth: 0
ref: '885-ci-for-tasking-manager'
branch: 'the-sacrifice'

- name: List relevant branches & script directories
run: |
git status
git branch --all | egrep '\/main$|\/master$|sacrifice|candidate'
ls -lR ./scripts/ohm
- name: Create 'the-sacrifice', our new sacrificial branch
uses: peterjgrainger/[email protected]
- name: Check out our new sacrificial branch
uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: 'the-sacrifice'
fetch-depth: 0
ref: 'the-sacrifice'

- name: List relevant branches & script directories
run: |
git status
git branch --all | egrep '\/main$|\/master$|sacrifice|candidate'
ls -lR ./scripts/ohm
- name: Check out our new sacrificial branch
uses: actions/checkout@v4
- name: Add & fetch upstream master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fetch-depth: 0
ref: 'the-sacrifice'
UPSTREAM: https://github.com/hotosm/tasking-manager
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git remote add upstream "${UPSTREAM}"
git fetch upstream master
- name: List relevant branches & script directories
run: |
Expand Down

0 comments on commit 206a99c

Please sign in to comment.