sync #4039
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: sync | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 * * * *' | |
| jobs: | |
| piped-plugin-sdk-go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| path: piped-plugin-sdk-go | |
| - uses: actions/checkout@v3 | |
| with: | |
| repository: pipe-cd/pipecd | |
| path: pipecd | |
| - run: | | |
| cd piped-plugin-sdk-go | |
| rm -rf * && cp -rf ../pipecd/pkg/plugin/sdk/* . | |
| git -C ../pipecd rev-parse HEAD > HEAD.txt | |
| cp -rf ../pipecd/pkg/plugin/sdk/README.remote.md README.md | |
| if [[ -z `git status --porcelain` ]]; then | |
| exit | |
| fi | |
| git config user.name pipecd-bot | |
| git config user.email [email protected] | |
| git add . | |
| git commit -m "Sync with pipe-cd/pipecd repository at $(<HEAD.txt)" | |
| git push |