File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments