Skip to content

Commit

Permalink
Update mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 authored Jan 21, 2025
1 parent 6726e95 commit c07cca3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,17 @@ jobs:
path: temp-repo

- run: |
pwd
ls -R
cp -r ./* ../backup/
rm -rf ../backup/.git
- name: Checkout the current repository (destination repository)
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- run: |
pwd
ls -R
- name: Copy files from MineBuilders/.github to current repository
run: |
cp -r ./temp-repo/* .
find . -mindepth 1 -not -path './.git/*' -exec rm -rf {} +
cp -r ../backup/* .
- name: Commit and push to the main branch
run: |
Expand Down

0 comments on commit c07cca3

Please sign in to comment.