Skip to content

Commit c10580d

Browse files
committed
Create dummy PR
1 parent f4ff5f4 commit c10580d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create a dummy PR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
create:
11+
permissions:
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
17+
- name: Remove this workflow file now that it has done its job
18+
run: git rm .github/workflows/create-dummy-pr.yml
19+
20+
- name: Use CLA approved bot
21+
run: .github/scripts/use-cla-approved-bot.sh
22+
23+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
24+
id: otelbot-token
25+
with:
26+
app-id: 1296620
27+
private-key: ${{ secrets.OTELBOT_JAVA_CONTRIB_PRIVATE_KEY }}
28+
29+
- name: Create pull request against the release branch
30+
env:
31+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
32+
run: |
33+
message="A dummy PR to give otelbot-java-contrib one merged PR under its belt"
34+
branch="otelbot/dummy-pr"
35+
36+
git checkout -b $branch
37+
git commit -a -m "$message"
38+
git push --set-upstream origin $branch
39+
gh pr create --title "$message" \
40+
--body "$message." \
41+
--base main

0 commit comments

Comments
 (0)