v1.2.0 #6
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --- | |
| name: Publish Release | |
| on: | |
| release: | |
| types: | |
| - published | |
| workflow_dispatch: | |
| inputs: | |
| tag-name: | |
| description: Tag name that the major tag will point to | |
| required: true | |
| env: | |
| TAG_NAME: ${{ github.event.inputs.tag-name || github.event.release.tag_name }} | |
| jobs: | |
| gh-release-update: | |
| name: GitHub Release | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get Token | |
| uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1 | |
| id: get-token | |
| with: | |
| app-id: ${{ secrets.ORG_BOT_APP_ID }} | |
| private-key: ${{ secrets.ORG_BOT_PRIVATE_KEY }} | |
| - name: Update release to the latest | |
| id: gh-release | |
| uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 | |
| with: | |
| prerelease: false | |
| token: ${{ steps.get-token.outputs.token }} | |
| - name: Update the major tag to include the ${{ env.TAG_NAME }} changes | |
| id: update-major-tag | |
| uses: actions/publish-action@f784495ce78a41bac4ed7e34a73f0034015764bb # v0.3.0 | |
| with: | |
| source-tag: ${{ env.TAG_NAME }} | |
| token: ${{ steps.get-token.outputs.token }} |