Merge pull request #515 from qonversion/release/5.10.0 #52
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: Release pull requests | |
on: | |
push: | |
tags: | |
- prerelease/* | |
jobs: | |
prerelease: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout all | |
with: | |
fetch-depth: 0 | |
- uses: olegtarasov/get-tag@v2.1 | |
id: tagName | |
with: | |
tagRegex: 'prerelease\/(\d*\.\d*\.\d*)' | |
- name: Bump version | |
run: | | |
fastlane bump version:${{ steps.tagName.outputs.tag }} | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
title: Release ${{ steps.tagName.outputs.tag }} | |
body: Release PR | |
labels: autocreated | |
branch: release/${{ steps.tagName.outputs.tag }} | |
base: develop | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Reset main branch | |
run: | | |
git fetch origin release/${{ steps.tagName.outputs.tag }}:release/${{ steps.tagName.outputs.tag }} | |
git reset --hard release/${{ steps.tagName.outputs.tag }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
title: Release ${{ steps.tagName.outputs.tag }} | |
body: Release PR | |
labels: autocreated | |
branch: release/${{ steps.tagName.outputs.tag }} | |
base: main |