Skip to content

fix(CI): fix not found issue - retrigger #12

fix(CI): fix not found issue - retrigger

fix(CI): fix not found issue - retrigger #12

Workflow file for this run

name: Mirror Workflow 🪞
env:
# SOURCE_URL: "https://github.com/EdukaiFR/website.git"
MIRROR_URL: "khalidbelk/testCI.git"
on:
push:
branches:
- main
- feat/CI
jobs:
push_to_mirror:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[Mirror CI]')"
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
token: ${{ secrets.PAT_TOKEN }}
- name: Push to mirror
env:
PAT: ${{ secrets.PAT_TOKEN }}
run: |
set -e
git config user.name "Github Action"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git remote add mirror https://${PAT}@github.com/${{ env.MIRROR_URL }}
git commit --allow-empty -m "[Mirror CI] - Update repository"
git push mirror main:main --force