File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tagging of repos 
2+ 
3+ env :
4+   tag : v1.2.3 
5+ 
6+ on :
7+   workflow_dispatch :
8+     inputs :
9+       tag :
10+         description : ' Tag to be published' 
11+         required : true 
12+         default : ' v1.2.3' 
13+         type : string 
14+       body :
15+         description : ' Release body message' 
16+         required : true 
17+         default : ' Changes in this Release' 
18+         type : string 
19+       pre-release :
20+         description : ' Pre-release? True/False' 
21+         required : true 
22+         default : False 
23+         type : string 
24+ 
25+ jobs :
26+   build :
27+     name : Create Release 
28+     runs-on : ubuntu-latest 
29+     steps :
30+       - name : Checkout code 
31+         uses : actions/checkout@v2 
32+       - name : Create Release 
33+         id : create_release 
34+         uses : actions/create-release@v1 
35+         env :
36+           GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}  #  This token is provided by Actions, you do not need to create your own token
37+         with :
38+           tag_name : ${{ github.event.inputs.tag }} 
39+           release_name : ${{ github.event.inputs.tag }} 
40+           body : | 
41+             ${{ github.event.inputs.body }} 
42+ draft : false 
43+           prerelease : ${{fromJSON(github.event.inputs.pre-release)}} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments