Skip to content

Commit

Permalink
attempting to get concurrency on git
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Nov 6, 2023
1 parent 33d016a commit 506793e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/create-board.yaml
Expand Up @@ -36,6 +36,9 @@ jobs:
run: |
bash hellen-one/kicad/bin/export.sh
- name: git pull
run: git pull

- name: Commit fresh gerber files
# sad: copy-pasta see below! TODO reuse somehow?
env:
Expand All @@ -48,6 +51,9 @@ jobs:
done
bash hellen-one/bin/gha-commit.sh
- name: git pull
run: git pull

- name: Push gerber files
# sad: copy-pasta see below! TODO reuse somehow?
# let's support both newer 'main' and older 'master' repositories
Expand All @@ -70,6 +76,9 @@ jobs:
run: |
bash hellen-one/bin/step3_create_board_with_docker.sh
- name: git pull
run: git pull

- name: Commit fresh board files
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
Expand All @@ -81,6 +90,9 @@ jobs:
done
bash hellen-one/bin/gha-commit.sh
- name: git pull
run: git pull

- name: Push board files
# let's support both newer 'main' and older 'master' repositories
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && env.NOCOMMIT != 'true'}}
Expand Down

0 comments on commit 506793e

Please sign in to comment.