Skip to content

Create a dummy PR

Create a dummy PR #1

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