4444 || contains(github.event.inputs.versionTag, 'rc')) }}
4545 uses : actions/github-script@v4.0.2
4646 with :
47- github-token : ${{secrets.GITHUB_TOKEN }}
47+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
4848 script : |
4949 await github.request(`POST /repos/${{ github.repository }}/releases`, {
5050 tag_name: "${{ github.event.inputs.versionTag }}",
5858 || contains(github.event.inputs.versionTag, 'rc')) }}
5959 uses : actions/github-script@v4.0.2
6060 with :
61- github-token : ${{secrets.GITHUB_TOKEN }}
61+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
6262 script : |
6363 await github.request(`POST /repos/${{ github.repository }}/releases`, {
6464 tag_name: "${{ github.event.inputs.versionTag }}",
@@ -75,16 +75,19 @@ jobs:
7575 - name : Switch to new branch
7676 run : git checkout -b release/set-version-to-${{ github.event.inputs.versionTag }}
7777
78+ - name : Set remote branch
79+ run : git push --set-upstream origin release/set-version-to-${{ github.event.inputs.versionTag }}
80+
7881 - name : Checkin commit
7982 run : git commit . -m 'Set version to ${{ github.event.inputs.versionTag }}'
8083
81- - name : Set remote branch
82- run : git push --set-upstream origin release/set-version-to-${{ github.event.inputs.versionTag }}
84+ - name : Push to Github
85+ run : git push
8386
8487 - name : Open PR with version bump
8588 uses : actions/github-script@v4.0.2
8689 with :
87- github-token : ${{secrets.GITHUB_TOKEN }}
90+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
8891 script : |
8992 await github.request(`POST /repos/${{ github.repository }}/pulls`, {
9093 title: 'Update version to ${{ github.event.inputs.versionTag }}',
0 commit comments