composer 更新依赖后输出每个组件的结果 #3791
Workflow file for this run
This file contains hidden or 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
| name: mirror | |
| on: | |
| push: | |
| delete: | |
| create: | |
| release: | |
| types: [published] | |
| jobs: | |
| gitee: | |
| if: github.repository == 'imiphp/imi' && (github.ref == 'refs/heads/2.1') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ahmadnassri/action-workflow-queue@v1 | |
| - name: Configure Private Key | |
| env: | |
| SSH_PRIVATE_KEY: ${{ secrets.GITEE_PRIVATE_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
| - name: Push Mirror | |
| env: | |
| SOURCE_REPO: "https://github.com/imiphp/imi.git" | |
| DESTINATION_REPO: "git@gitee.com:yurunsoft/IMI.git" | |
| run: | | |
| git clone --mirror "$SOURCE_REPO" && cd `basename "$SOURCE_REPO"` | |
| git remote set-url --push origin "$DESTINATION_REPO" | |
| git fetch -p origin | |
| git for-each-ref --format 'delete %(refname)' refs/pull | git update-ref --stdin | |
| git push --mirror |