8484 - name : Checkout
8585 uses : actions/checkout@v3
8686 with :
87- fetch-depth : 0
87+ ref : ${{github.event.pull_request.base.ref}}
8888
8989 - name : Set env.BUILD_BOT to Build Bot's Username
9090 run : echo BUILD_BOT=polywrap-build-bot >> $GITHUB_ENV
@@ -125,26 +125,19 @@ jobs:
125125 env :
126126 POLYWRAP_BUILD_BOT_PYPI_PAT : ${{ secrets.POLYWRAP_BUILD_BOT_PYPI_PAT }}
127127
128- - name : Commit Version Changes
129- run : |
130- git add .
131- git commit -m "chore: patch version to ${{env.RELEASE_VERSION}}" --allow-empty
132- continue-on-error : true
133-
134128 - name : Create Pull Request from dev to main
135129 id : cpr-cd
136130 uses : peter-evans/create-pull-request@v3
137131 with :
138132 branch : cd/${{env.RELEASE_VERSION}}
139- base : main
140133 committer : GitHub <noreply@github.com>
141134 author : ${{env.BUILD_BOT}} <${{env.BUILD_BOT}}@users.noreply.github.com>
142135 commit-message : " chore: patch version to ${{env.RELEASE_VERSION}}"
143136 title : ' Python client CD (${{env.RELEASE_VERSION}})'
144137 body : |
145138 ## Python client CD (${{env.RELEASE_VERSION}})
146139
147- - name : Release PR Created...
140+ - name : CD PR Created...
148141 uses : actions/github-script@0.8.0
149142 with :
150143 github-token : ${{secrets.GITHUB_TOKEN}}
@@ -156,62 +149,6 @@ jobs:
156149 body: '**[Release PR Created](https://github.com/${{github.repository}}/pull/${{ steps.cpr-cd.outputs.pull-request-number }}) (`${{env.RELEASE_VERSION}}`)**'
157150 })
158151
159- - name : Building POST CD PR...
160- uses : actions/github-script@0.8.0
161- with :
162- github-token : ${{secrets.GITHUB_TOKEN}}
163- script : |
164- github.issues.createComment({
165- issue_number: context.issue.number,
166- owner: context.repo.owner,
167- repo: context.repo.repo,
168- body: '[Building POST CD PR](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}) (`${{env.RELEASE_VERSION}}`)'
169- })
170-
171- - name : Link Packages in dev branch
172- run : python3 scripts/link_packages.py
173-
174- - name : Commit Linking Changes
175- run : |
176- git add .
177- git commit -m "chore: link dependencies post ${{env.RELEASE_VERSION}} release" --allow-empty
178- continue-on-error : true
179-
180- - name : Create Pull Request from main to dev
181- id : cpr-post-cd
182- uses : peter-evans/create-pull-request@v3
183- with :
184- branch : post-cd/${{env.RELEASE_VERSION}}
185- base : dev
186- committer : GitHub <noreply@github.com>
187- author : ${{env.BUILD_BOT}} <${{env.BUILD_BOT}}@users.noreply.github.com>
188- commit-message : " chore: link dependencies post ${{env.RELEASE_VERSION}} release"
189- title : ' Python client POST CD (${{env.RELEASE_VERSION}})'
190- body : |
191- ## Python client POST CD (${{env.RELEASE_VERSION}})
192-
193- - name : POST CD PR Created...
194- uses : actions/github-script@0.8.0
195- with :
196- github-token : ${{secrets.GITHUB_TOKEN}}
197- script : |
198- github.issues.createComment({
199- issue_number: context.issue.number,
200- owner: context.repo.owner,
201- repo: context.repo.repo,
202- body: '**[POST CD PR Created](https://github.com/${{github.repository}}/pull/${{ steps.cpr-post-cd.outputs.pull-request-number }}) (`${{env.RELEASE_VERSION}}`)**'
203- })
204-
205- Github-release :
206- needs :
207- - Pre-Check
208- name : Create Release
209- runs-on : ubuntu-latest
210- steps :
211- - name : Checkout code
212- uses : actions/checkout@v3
213- - name : Read VERSION into env.RELEASE_VERSION
214- run : echo RELEASE_VERSION=$(cat VERSION) >> $GITHUB_ENV
215152 - id : changelog
216153 name : " Generate release changelog"
217154 uses : heinrichreimer/github-changelog-generator-action@v2.3
@@ -220,7 +157,8 @@ jobs:
220157 unreleasedLabel : ${{ env.RELEASE_VERSION }}
221158 token : ${{ secrets.GITHUB_TOKEN }}
222159 continue-on-error : true
223- - name : Create Release
160+
161+ - name : Create GitHub Release
224162 id : create_release
225163 uses : actions/create-release@v1
226164 env :
0 commit comments