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 34ccf97 commit 65e6c11
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/ohm.upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,27 @@ jobs:
run:
shell: bash
steps:
- name: Check out our repository
uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fetch-depth: 0

- name: List all branches
run: |
git branch --all | egrep 'main|master|sacrifice|candidate'
- name: Delete previous sacrificial branch
run: |
if git show-ref --quiet refs/heads/the-sacrifice; then
git branch --remote -D origin/the-sacrifice
fi
- name: List all branches
run: |
git branch --all | egrep 'main|master|sacrifice|candidate'
- name: Check out upstream master
env:
UPSTREAM: https://github.com/hotosm/tasking-manager
Expand All @@ -34,28 +55,10 @@ jobs:
fetch-depth: 0
ref: '885-ci-for-tasking-manager'

- name: List script directories
run: |
ls -lR ./scripts
- name: List all branches
run: |
git branch --all | egrep 'main|master|sacrifice|candidate'
- name: Delete previous sacrificial branch
run: |
if git show-ref --quiet refs/heads/the-sacrifice; then
git branch --remote -D origin/the-sacrifice
fi
# - name: List all branches
# run: |
# git branch --all | egrep 'main|master|sacrifice|candidate'
#
# - name: List all branches
# run: |
# git branch --all | egrep 'main|master|sacrifice|candidate'

- name: Create 'the-sacrifice', our new sacrificial branch
uses: peterjgrainger/[email protected]
env:
Expand Down

0 comments on commit 65e6c11

Please sign in to comment.