From 7f84c8521edab14d6462f52390ac5b906a739dee Mon Sep 17 00:00:00 2001 From: Jay <110402935+jay-418@users.noreply.github.com> Date: Wed, 12 Jun 2024 16:20:11 -0600 Subject: [PATCH] correct dir structure error --- .github/workflows/mirror.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 3f3ee5ff31..a9035b3875 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -14,9 +14,12 @@ jobs: run: | git config --global user.email "github-actions@github.com" git config --global user.name "GitHub Action" - + + # pull generated files from github profile page and commit them git remote add readmes https://github.com/getlantern/.github.git git fetch readmes git checkout --no-overlay readmes/main -- profile - git add README* # add every file that starts with README + mv profile/* . + rm -rf profile + git add README* git diff --quiet && git diff --staged --quiet || git commit -m 'fetched from getlantern/.github/profile'; git push