Create a dummy PR #1
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: Create a dummy PR | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| create: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Need to make some kind of change, and this workflow will no longer be needed after running it the one time, so... | |
| run: git rm .github/workflows/create-dummy-pr.yml | |
| - name: Use CLA approved bot | |
| run: .github/scripts/use-cla-approved-bot.sh | |
| - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | |
| id: otelbot-token | |
| with: | |
| app-id: 1296620 | |
| private-key: ${{ secrets.OTELBOT_JAVA_CONTRIB_PRIVATE_KEY }} | |
| - name: Create pull request against the release branch | |
| env: | |
| GH_TOKEN: ${{ steps.otelbot-token.outputs.token }} | |
| run: | | |
| message="A dummy PR to give otelbot-java-contrib one merged PR under its belt" | |
| branch="otelbot/dummy-pr" | |
| git checkout -b $branch | |
| git commit -a -m "$message" | |
| git push --set-upstream origin $branch | |
| gh pr create --title "$message" \ | |
| --body "$message." \ | |
| --base main |