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 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Add a newline to the end of README.md | |
| run: echo -e "\n" >> README.md | |
| - name: Use CLA approved bot | |
| run: .github/scripts/use-cla-approved-bot.sh | |
| - name: Create pull request against the release branch | |
| env: | |
| GH_TOKEN: ${{ github.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 "[$RELEASE_BRANCH_NAME] $message" \ | |
| --body "$message." \ | |
| --base $RELEASE_BRANCH_NAME |