Skip to content

Commit

Permalink
Add autopush workflow, fix incorrect master branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Aug 25, 2024
1 parent 27ce912 commit ad20461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autopush.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
"$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email \
"$(git --no-pager log --format=format:'%ae' -n 1)"
git rebase origin/main || cat .github/workflows/autopush.yaml
git checkout main
git rebase origin/master
git checkout master
git branch
git merge --ff-only ${{ github.event.ref }}
# git push
4 changes: 4 additions & 0 deletions scripts/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ cm() {
fi
}

autopush() {
git push origin +"${1:-HEAD}":refs/heads/cameron-autopush-"$(uuidgen --random | cut -c1-8)"-citmp
}

alias xbox=startxbox

# PYTHONPATH modifications
Expand Down

0 comments on commit ad20461

Please sign in to comment.