diff --git a/.github/workflows/push_to_new_AppStore.yml b/.github/workflows/push_to_new_AppStore.yml index 4bc614b..4f93f98 100644 --- a/.github/workflows/push_to_new_AppStore.yml +++ b/.github/workflows/push_to_new_AppStore.yml @@ -14,16 +14,21 @@ jobs: - uses: actions/checkout@v3 - name: remove all file except icon.png run: find . -type f -not \( -name 'icon.png' -or -name '*.json' -or -name '*.yml' \) -delete - - name: remove .github - run: | - rm -fr ./.github - name: Pushes to another repository uses: cpina/github-action-push-to-another-repository@main env: API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB2 }} with: - source-directory: '.' + source-directory: './Apps' destination-github-username: 'IceWhaleTech' - destination-repository-name: 'CasaOS-NewAppStore' + destination-repository-name: '_appstore' user-email: q2676515970@163.com - target-directory: '' + target-directory: './Apps' + + - name: Copycat + uses: andstor/copycat-action@v3 + with: + personal_token: ${{ secrets.GITHUB_TOKEN }} + src_path: ./recommend-list.json + dst_owner: IceWhaleTech + dst_repo_name: _appstore