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