using zowe robot in wf #2
Workflow file for this run
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
name: Sync CLI Readmes | |
on: | |
push: | |
branches: | |
- next | |
- cleanup | |
jobs: | |
sync-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Sync files | |
run: | | |
cp zowe-cli/README.md zowe-cli/packages/cli/README.md | |
- name: Commit then Push Changes | |
run: | | |
git config --global user.name ${{ secrets.ZOWE_ROBOT_USER }} | |
git config --global user.email ${{ secrets.ZOWE_ROBOT_EMAIL }} | |
git add "zowe-cli/README.md" "zowe-cli/packages/cli/README.md" | |
git commit -m "Synching cli readmes" | |
git push origin HEAD |