Skip to content

Merge pull request #552 from qonversion/fix/sc-35444/propertiesRaces #59

Merge pull request #552 from qonversion/fix/sc-35444/propertiesRaces

Merge pull request #552 from qonversion/fix/sc-35444/propertiesRaces #59

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/[email protected]
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