Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/create-dummy-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
Loading