Skip to content

Commit

Permalink
Configure backups
Browse files Browse the repository at this point in the history
  • Loading branch information
nworb-cire committed Jul 25, 2024
1 parent 7b3747b commit 00bb936
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/update-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
git fetch upstream master
git fetch upstream master-ci
- name: Push dev to backup branch
run: |
backup_branch_name="dev-bkp-$(date -u +%Y-%m-%d)"
git checkout -f dev
git switch -c $backup_branch_name
git push -f origin $backup_branch_name --no-verify
- name: Unsubmodule master
run: |
declare -a submodules=("panda" "msgq" "opendbc" "body" "rednose_repo" "tinygrad_repo" "teleoprtc_repo")
Expand Down Expand Up @@ -80,16 +87,9 @@ jobs:
git cherry-pick $commit || exit 1
done
# - name: Push dev to backup branch
# run: |
# backup_branch_name="dev-bkp-$(date -u +%Y-%m-%d-%H-%M-%S)"
# git checkout -f dev
# git switch -c $backup_branch_name
# git push -f origin $backup_branch_name --no-verify

- name: Push dev-new to dev
run: |
git checkout -f dev-new
git branch -D dev-test || :
git switch -c dev-test
git push -f origin dev-test --no-verify
git branch -D dev || :
git switch -c dev
git push -f origin dev --no-verify

0 comments on commit 00bb936

Please sign in to comment.