Use venv to resolve error: externally-managed-environment
#309
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request_target: | |
branches: [master] | |
name: Tests / test-user-mirror (cached) | |
jobs: | |
run: | |
name: Run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v1 | |
- name: Get Time | |
id: get-time | |
run: | | |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M%S")" | |
shell: bash | |
- name: Cache src repos | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ${{ github.workspace }}/hub-mirror-cache | |
key: ${{ runner.os }}-hub-repos-cache-${{ steps.get-time.outputs.date }} | |
restore-keys: ${{ runner.os }}-hub-repos-cache | |
- name: Mirror Github to Gitee with white list and cache | |
uses: ./. | |
with: | |
src: github/Yikun | |
dst: gitee/yikunkero | |
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} | |
dst_token: ${{ secrets.GITEE_TOKEN }} | |
cache_path: /github/workspace/hub-mirror-cache | |
white_list: 'hub-mirror-action, hexo-migrator-github-issue' | |
force_update: true | |
- name: Print cache path | |
run: | | |
ls -la ${{ github.workspace }}/hub-mirror-cache |