Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed Dec 27, 2024
1 parent 8bb37ad commit 4308292
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/configs/changelog-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"categories": [
{
"title": "## ✨ Features",
"labels": [
"type: feature"
]
},
{
"title": "## 🐛 Bug fixes",
"labels": [
"type: bug"
]
},
{
"title": "## 🧹 Chores",
"labels": [
"type: chore"
]
},
{
"title": "## Others",
"exclude_labels": [
"type: feature",
"type: bug",
"type: chore",
"type: release"
]
}
],
"max_pull_requests": 200
}
38 changes: 38 additions & 0 deletions .github/workflows/create_release_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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/create_release_pull_request@0.1.10
with:
release_version: ${{ env.RELEASE_VERSION }}
changelog_configuration: ".github/workflows/configs/changelog-config.json"
assignee: bot-nimble

0 comments on commit 4308292

Please sign in to comment.