Skip to content

Squash git worktree #24

Squash git worktree

Squash git worktree #24

Workflow file for this run

name: Squash git worktree
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
squash:
runs-on: ubuntu-latest
steps:
- name: Checkout repository πŸ›ŽοΈ
uses: actions/checkout@v3
with:
token: ${{ secrets.IVY_BRANCH_TOKEN }}
ref: main
fetch-depth: 0
- name: Setup Git user πŸ‘€
run: |
git config --local user.email "[email protected]"
git config --local user.name "ivy-branch"
- name: Squash commits
run: |
git reset $(git commit-tree HEAD^{tree} -m "πŸš€ Weekly squash commit")
- name: Force push single commit
run: git push -f origin main