Skip to content

an automated quick commit and push (tpush) #17

an automated quick commit and push (tpush)

an automated quick commit and push (tpush) #17

Workflow file for this run

name: Mirror
on:
push:
branches:
- master
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Mirror script
run: |
#!/bin/sh -l
REMOTE="https://${{ secrets.MY_TOKEN }}@github.com/t-ibrahimm/t-ibrahimm.github.io.git"
git clone --bare "https://${GITHUB_ACTOR}:${{ secrets.MY_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" .
git remote add --mirror=fetch mirror "$REMOTE"
git fetch mirror +refs/heads/*:refs/remotes/origin/*
git push --force --mirror --prune origin