3131 if : ${{env.IS_PUBLISHER == 'false'}}
3232 uses : actions/github-script@0.8.0
3333 with :
34- github-token : ${{secrets.POLYWRAP_BUILD_BOT_PAT }}
34+ github-token : ${{secrets.GITHUB_TOKEN }}
3535 script : |
3636 github.issues.createComment({
3737 issue_number: context.issue.number,
6262 if : ${{env.TAG_EXISTS == 'true'}}
6363 uses : actions/github-script@0.8.0
6464 with :
65- github-token : ${{secrets.POLYWRAP_BUILD_BOT_PAT }}
65+ github-token : ${{secrets.GITHUB_TOKEN }}
6666 script : |
6767 github.issues.createComment({
6868 issue_number: context.issue.number,
@@ -86,16 +86,19 @@ jobs:
8686 with :
8787 ref : ${{github.event.pull_request.base.ref}}
8888
89- - name : Set env.BOT to Build Bot's Username
90- run : echo BOT=polywrap-build-bot >> $GITHUB_ENV
89+ - name : set env.RELEASE_FORKS to Release Forks' Organization
90+ run : echo RELEASE_FORKS=polywrap-release-forks >> $GITHUB_ENV
91+
92+ - name : Set env.BUILD_BOT to Build Bot's Username
93+ run : echo BUILD_BOT=polywrap-build-bot >> $GITHUB_ENV
9194
9295 - name : Read VERSION into env.RELEASE_VERSION
9396 run : echo RELEASE_VERSION=$(cat VERSION) >> $GITHUB_ENV
9497
9598 - name : Building Release PR...
9699 uses : actions/github-script@0.8.0
97100 with :
98- github-token : ${{secrets.POLYWRAP_BUILD_BOT_PAT }}
101+ github-token : ${{secrets.GITHUB_TOKEN }}
99102 script : |
100103 github.issues.createComment({
101104 issue_number: context.issue.number,
@@ -120,8 +123,8 @@ jobs:
120123
121124 - name : Set Git Identity
122125 run : |
123- git config --global user.name '${{env.BOT }}'
124- git config --global user.email '${{env.BOT }}@users.noreply.github.com'
126+ git config --global user.name '${{env.BUILD_BOT }}'
127+ git config --global user.email '${{env.BUILD_BOT }}@users.noreply.github.com'
125128 env :
126129 GITHUB_TOKEN : ${{ secrets.POLYWRAP_BUILD_BOT_PAT }}
127130
@@ -141,11 +144,11 @@ jobs:
141144 uses : peter-evans/create-pull-request@v3
142145 with :
143146 token : ${{ secrets.POLYWRAP_BUILD_BOT_PAT }}
144- push-to-fork : ${{env.BOT }}/${{github.event.pull_request.base.repo.name}}
147+ push-to-fork : ${{env.RELEASE_FORKS }}/${{github.event.pull_request.base.repo.name}}
145148 branch : release/origin-${{env.RELEASE_VERSION}}
146149 base : ${{github.event.pull_request.base.ref}}
147150 committer : GitHub <noreply@github.com>
148- author : ${{env.BOT }} <${{env.BOT }}@users.noreply.github.com>
151+ author : ${{env.BUILD_BOT }} <${{env.BUILD_BOT }}@users.noreply.github.com>
149152 commit-message : " ${{env.RELEASE_VERSION}}"
150153 title : ' Polywrap Origin (${{env.RELEASE_VERSION}})'
151154 body : |
@@ -168,7 +171,7 @@ jobs:
168171 - name : Release PR Created...
169172 uses : actions/github-script@0.8.0
170173 with :
171- github-token : ${{secrets.POLYWRAP_BUILD_BOT_PAT }}
174+ github-token : ${{secrets.GITHUB_TOKEN }}
172175 script : |
173176 github.issues.createComment({
174177 issue_number: context.issue.number,
0 commit comments