fix: Ignore missing order id when rejecting a rollover offer #1242
Workflow file for this run
This file contains 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: "Create release" | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
release: | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract version from branch name | |
id: extract-version | |
shell: python | |
run: | | |
branch_name = "${{ github.event.pull_request.head.ref }}" | |
version = branch_name.split("/")[1] | |
print(f"::set-output name=version::{version}") | |
- uses: actions/download-artifact@v3 | |
with: | |
name: ${{ needs.build.outputs.ANDROID_APK_NAME }} | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ${{ needs.build.outputs.ANDROID_APK_NAME }} | |
token: ${{ secrets.GH_ACTION_TOKEN }} | |
tag: ${{ steps.extract-version.outputs.version }} | |
prerelease: true | |
makeLatest: false | |
generateReleaseNotes: true |