test: verify GitHub App commit shows as Verified #38
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: Test App commit verification | |
| on: | |
| push: | |
| branches: | |
| - suever/use-app-token-for-openapi-commits/devrel-144 | |
| permissions: | |
| contents: write | |
| jobs: | |
| test-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.MASSIVE_CLIENT_LIBRARY_AUTOMATION_APP_ID }} | |
| private-key: ${{ secrets.MASSIVE_CLIENT_LIBRARY_AUTOMATION_APP_PRIVATE_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| persist-credentials: true | |
| - name: Create test file | |
| run: echo "# Test commit $(date -u) - safe to delete" > .test-app-commit | |
| - name: Commit and push | |
| uses: iarekylew00t/verified-bot-commit@v2 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| message: "test: verify GitHub App commit shows as Verified" | |
| files: .test-app-commit |