[#557] Automate Release Pull Request Creation Process #14
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 Pull Request | |
on: | |
pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
create_release_pull_request: | |
name: Create Release Pull Request | |
runs-on: macOS-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Bundle install | |
run: bundle install | |
- name: Start Install Script for SwiftUI Template App | |
run: swift run --package-path Scripts/Swift/iOSTemplateMaker iOSTemplateMaker make --bundle-id-production co.nimblehq.ios.templates --bundle-id-staging co.nimblehq.ios.templates.staging --project-name TemplateApp --interface SwiftUI | |
- name: Get release version | |
run: | | |
filename=$(find . -maxdepth 1 -name "*.xcodeproj" -exec basename {} .xcodeproj \; | head -n 1) | |
release_version=$(sed -n 's/.*MARKETING_VERSION *= *\([^;]*\);.*/\1/p' "$filename.xcodeproj/project.pbxproj" | head -n 1 | sed 's/^[^=]*=\s*//' | tr -d ' ') | |
echo $release_version | |
echo "RELEASE_VERSION=$release_version" >> "$GITHUB_ENV" | |
- uses: nimblehq/github-actions-workflows/[email protected] | |
with: | |
release_version: ${{ env.RELEASE_VERSION }} | |
changelog_configuration: ".github/workflows/configs/changelog-config.json" | |
assignee: bot-nimble |