TEST - Update README #11
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: app-token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| client-id: Iv23liEEWBEvXnSckkld | |
| private-key: ${{ secrets.PM_CICD_APP_PRIVATE_KEY }} | |
| owner: ProcessMaker | |
| - name: Get GitHub App User ID | |
| id: get-user-id | |
| run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - run: | | |
| user_name=${{ steps.app-token.outputs.app-slug }}[bot] | |
| echo "user_name: $user_name" | |
| git config --global user.name $user_name | |
| user_email=${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com | |
| echo "user_email: $user_email" | |
| git config --global user.email $user_email | |
| gh auth setup-git | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - name: Clone private repository | |
| run: | | |
| 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 - test" | |
| git push |