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