Skip to content

Commit

Permalink
fixv3
Browse files Browse the repository at this point in the history
  • Loading branch information
thommythomaso committed Feb 26, 2024
1 parent 6a8c649 commit 115688b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ jobs:
run: make -B idma_hw_all
-
name: Deploy generated files
run: python3 util/deploy.py
run: |
git config user.email "github-ci@iis.ee.ethz.ch"
git config user.name "github-ci"
git fetch --all
python3 util/deploy.py
4 changes: 4 additions & 0 deletions util/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
last_deploy_hash = os.popen(f'{CHECK_BRANCH_CMD} {deploy_branch}').read()
deploy_msg = f'{current_msg}\n-----\n\nDeployed from {current_hash}'

# checkout current working branch
os.popen(f'{GIT_CHECKOUT_CMD} {current_branch}')
time.sleep(0.5)

# spawn or switch to deploy branch
if last_deploy_hash == '':
# create new deploy branch
Expand Down

0 comments on commit 115688b

Please sign in to comment.