TEST - Update README #5
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: TEST - Update README | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| update-repo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate a token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: 2526300 | |
| private-key: ${{ secrets.PM_CICD_APP_PRIVATE_KEY }} | |
| - name: Clone private repository | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| run: | | |
| git config --global url."https://${{ steps.generate-token.outputs.token }}@github.com/".insteadOf "https://github.com/" | |
| git config --global user.name "GitHub App" | |
| git config --global user.email "app@github.local" | |
| git clone https://github.com/ProcessMaker/security-scans.git | |
| - name: Make change to README | |
| run: | | |
| echo "." >> security-scans/README.md | |
| - name: Commit and push changes | |
| run: | | |
| cd security-scans | |
| git add README.md | |
| git commit -m "Add period to README" | |
| git push |