Skip to content

Commit 2a7610a

Browse files
authored
Setting up: A dummy PR to give otelbot-java-contrib one merged PR under its belt (#1925)
1 parent 4e7590e commit 2a7610a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/create-dummy-pr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
18+
- name: Need to make some kind of change, and this workflow will no longer be needed after running it the one time, so...
19+
run: git rm .github/workflows/create-dummy-pr.yml
20+
21+
- name: Use CLA approved bot
22+
run: .github/scripts/use-cla-approved-bot.sh
23+
24+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
25+
id: otelbot-token
26+
with:
27+
app-id: 1296620
28+
private-key: ${{ secrets.OTELBOT_JAVA_CONTRIB_PRIVATE_KEY }}
29+
30+
- name: Create pull request against the release branch
31+
env:
32+
GH_TOKEN: ${{ steps.otelbot-token.outputs.token }}
33+
run: |
34+
message="A dummy PR to give otelbot-java-contrib one merged PR under its belt"
35+
branch="otelbot/dummy-pr"
36+
37+
git checkout -b $branch
38+
git commit -a -m "$message"
39+
git push --set-upstream origin $branch
40+
gh pr create --title "$message" \
41+
--body "$message." \
42+
--base main

0 commit comments

Comments
 (0)