Skip to content

Commit

Permalink
feat(CI): check if this triggers only on source repo
Browse files Browse the repository at this point in the history
Added spacing between jobs for better visibility
  • Loading branch information
khalidbelk committed Nov 13, 2024
1 parent 44e9965 commit c3f1e37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/mirrorV2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Mirror Workflow 🪞

env:
SOURCE_REPO: "EdukaiFR/website"
MIRROR_URL: "khalidbelk/testCI.git"

on:
Expand All @@ -12,15 +13,17 @@ on:

jobs:
push_to_mirror:
if: github.event.head_commit.message != '[Mirror CI]'
if: github.repository == env.SOURCE_REPO
runs-on: ubuntu-latest
steps:

- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: feat/CI
token: ${{ secrets.PAT_TOKEN }}

- name: Push to mirror
run: |
set -e
Expand Down

0 comments on commit c3f1e37

Please sign in to comment.