Skip to content

Commit

Permalink
111
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnson alaric committed Sep 16, 2024
1 parent 7c867bd commit 20def0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/copymd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- name: Checkout current repository
uses: actions/checkout@v3
id: checkout

- name: Set up Git
run: |
Expand All @@ -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
Expand Down

0 comments on commit 20def0d

Please sign in to comment.