Skip to content

Commit 3d634c4

Browse files
committed
test
1 parent fd30a0e commit 3d634c4

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## ✨ Features",
5+
"labels": [
6+
"type: feature"
7+
]
8+
},
9+
{
10+
"title": "## 🐛 Bug fixes",
11+
"labels": [
12+
"type: bug"
13+
]
14+
},
15+
{
16+
"title": "## 🧹 Chores",
17+
"labels": [
18+
"type: chore"
19+
]
20+
},
21+
{
22+
"title": "## Others",
23+
"exclude_labels": [
24+
"type: feature",
25+
"type: bug",
26+
"type: chore",
27+
"type: release"
28+
]
29+
}
30+
],
31+
"max_pull_requests": 200
32+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Create Release Pull Request
2+
3+
on:
4+
push:
5+
branches: [ feature/**, bug/**, chore/** ]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
create_release_pull_request:
13+
name: Create Release Pull Request
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 30
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
# - name: Get release version
21+
# run: |
22+
# filename=$(find . -maxdepth 1 -name "*.xcodeproj" -exec basename {} .xcodeproj \; | head -n 1)
23+
# release_version=$(sed -n 's/.*MARKETING_VERSION *= *\([^;]*\);.*/\1/p' "$filename.xcodeproj/project.pbxproj" | head -n 1 | sed 's/^[^=]*=\s*//' | tr -d ' ')
24+
# echo $release_version
25+
# echo "RELEASE_VERSION=$release_version" >> "$GITHUB_ENV"
26+
27+
- uses: nimblehq/github-actions-workflows/[email protected]
28+
with:
29+
release_version: "1.0.0"
30+
changelog_configuration: ".github/workflows/configs/changelog-config.json"
31+
assignee: bot-nimble
32+
33+
# create_bump_version_pull_request:
34+
# name: Create Bump Version Pull Request
35+
# runs-on: macos-latest
36+
# timeout-minutes: 30
37+
# permissions:
38+
# contents: write
39+
# pull-requests: write
40+
# steps:
41+
# - name: Validate Version Input
42+
# run: |
43+
# if ! [[ "${{ github.event.inputs.nextVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
44+
# echo "Error: nextVersion must follow semantic versioning (e.g., 1.2.3)"
45+
# exit 1
46+
# fi
47+
# - name: Create Bump Version branch
48+
# uses: peterjgrainger/[email protected]
49+
# env:
50+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
# with:
52+
# branch: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
53+
54+
# - name: Checkout code
55+
# uses: actions/checkout@v4
56+
# with:
57+
# ref: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
58+
59+
# - name: Bump version
60+
# run: |
61+
# filename=$(find . -maxdepth 1 -name "*.xcodeproj" -exec basename {} .xcodeproj \; | head -n 1)
62+
# sed -i "" "s/MARKETING_VERSION = .*/MARKETING_VERSION = ${{ github.event.inputs.nextVersion }};/g" $filename.xcodeproj/project.pbxproj
63+
64+
# - name: Set up Git
65+
# run: |
66+
# git config --global user.name 'Github Actions'
67+
# git config --global user.email '[email protected]'
68+
69+
# - name: Commit changes
70+
# run: |
71+
# git add .
72+
# git commit -m "[Chore] Bump version to ${{ github.event.inputs.nextVersion }}"
73+
# git push origin HEAD
74+
75+
# - name: Create pull request
76+
# run: |
77+
# echo -e "## What happened 👀\n\nBump version to ${{ github.event.inputs.nextVersion }}" > body
78+
# export body=$(cat body) ; gh pr create --draft -B develop -H chore/bump-version-to-${{ github.event.inputs.nextVersion }} -t '[Chore] Bump version to ${{ github.event.inputs.nextVersion }}' -b "$body"
79+
# env:
80+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)