From 20def0d4d1f824be9bc1536bda10618b76b5c378 Mon Sep 17 00:00:00 2001 From: Johnson alaric Date: Mon, 16 Sep 2024 11:28:45 +0800 Subject: [PATCH] 111 --- .github/workflows/copymd.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/copymd.yml b/.github/workflows/copymd.yml index 52e4dd9..a65adba 100644 --- a/.github/workflows/copymd.yml +++ b/.github/workflows/copymd.yml @@ -12,6 +12,7 @@ jobs: steps: - name: Checkout current repository uses: actions/checkout@v3 + id: checkout - name: Set up Git run: | @@ -24,6 +25,10 @@ jobs: repos=$(curl -s -H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" \ https://api.github.com/user/repos?per_page=100 | jq -r '.[].full_name') + # Exclude the current repository + current_repo="${{ github.repository }}" + repos=$(echo "$repos" | grep -v "^$current_repo$") + echo "$repos" > repos.txt - name: Copy MD files from all repos