4242 || contains(github.event.inputs.versionTag, 'rc')) }}
4343 uses : actions/github-script@v4.0.2
4444 with :
45- github-token : ${{secrets.GITHUB_TOKEN }}
45+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
4646 script : |
4747 await github.request(`POST /repos/${{ github.repository }}/releases`, {
4848 tag_name: "${{ github.event.inputs.versionTag }}",
5555 || contains(github.event.inputs.versionTag, 'rc')) }}
5656 uses : actions/github-script@v4.0.2
5757 with :
58- github-token : ${{secrets.GITHUB_TOKEN }}
58+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
5959 script : |
6060 await github.request(`POST /repos/${{ github.repository }}/releases`, {
6161 tag_name: "${{ github.event.inputs.versionTag }}",
@@ -71,16 +71,19 @@ jobs:
7171 - name : Switch to new branch
7272 run : git checkout -b release/set-version-to-${{ github.event.inputs.versionTag }}
7373
74+ - name : Set remote branch
75+ run : git push --set-upstream origin release/set-version-to-${{ github.event.inputs.versionTag }}
76+
7477 - name : Checkin commit
7578 run : git commit . -m 'Set version to ${{ github.event.inputs.versionTag }}'
7679
77- - name : Set remote branch
78- run : git push --set-upstream origin release/set-version-to-${{ github.event.inputs.versionTag }}
80+ - name : Push to Github
81+ run : git push
7982
8083 - name : Open PR with version bump
8184 uses : actions/github-script@v4.0.2
8285 with :
83- github-token : ${{secrets.GITHUB_TOKEN }}
86+ github-token : ${{secrets.JOHNNY_Q5_REPORTS_TOKEN }}
8487 script : |
8588 await github.request(`POST /repos/${{ github.repository }}/pulls`, {
8689 title: 'Update version to ${{ github.event.inputs.versionTag }}',
0 commit comments