Skip to content

Commit 960fe14

Browse files
committed
test
1 parent 191b90a commit 960fe14

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/project_workflows/create_release_pull_request.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
description: "Next version (eg. 1.0.0)"
88
required: true
99
type: string
10-
push:
11-
branches:
12-
- feature/557-automate-release-pull-request-creation-process
1310

1411
concurrency:
1512
group: ${{ github.workflow }}-${{ github.ref }}
@@ -67,15 +64,15 @@ jobs:
6764
env:
6865
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6966
with:
70-
branch: chore/bump-version-to-1.1.0
67+
branch: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
7168

7269
- name: Checkout code
7370
uses: actions/checkout@v4
7471
with:
75-
ref: chore/bump-version-to-1.1.0
72+
ref: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
7673

7774
- name: Bump version
78-
run: sed -i "" "s/MARKETING_VERSION = .*/MARKETING_VERSION = 1.1.0;/g" Smashburger.xcodeproj/project.pbxproj
75+
run: sed -i "" "s/MARKETING_VERSION = .*/MARKETING_VERSION = ${{ github.event.inputs.nextVersion }};/g" Smashburger.xcodeproj/project.pbxproj
7976

8077
- name: Set up Git
8178
run: |
@@ -85,12 +82,12 @@ jobs:
8582
- name: Commit changes
8683
run: |
8784
git add .
88-
git commit -m "[Chore] Bump version to 1.1.0"
85+
git commit -m "[Chore] Bump version to ${{ github.event.inputs.nextVersion }}"
8986
git push origin HEAD
9087
9188
- name: Create pull request
9289
run: |
93-
echo -e "## What happened 👀\n\nBump version to 1.1.0" > body
94-
export body=$(cat body) ; gh pr create --draft -B develop -H chore/bump-version-to-1.1.0 -t '[Chore] Bump version to 1.1.0' -b "$body"
90+
echo -e "## What happened 👀\n\nBump version to ${{ github.event.inputs.nextVersion }}" > body
91+
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"
9592
env:
9693
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/create_release_pull_request.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ on:
44
workflow_dispatch:
55
inputs:
66
nextVersion:
7-
description: "Next version (eg. 1.0.0)"
7+
description: "Next version (eg. 1.0.0)x"
88
required: true
99
type: string
10+
push:
11+
branches:
12+
- feature/557-automate-release-pull-request-creation-process
1013

1114
concurrency:
1215
group: ${{ github.workflow }}-${{ github.ref }}
@@ -64,15 +67,15 @@ jobs:
6467
env:
6568
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6669
with:
67-
branch: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
70+
branch: chore/bump-version-to-1.1.0
6871

6972
- name: Checkout code
7073
uses: actions/checkout@v4
7174
with:
72-
ref: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
75+
ref: chore/bump-version-to-1.1.0
7376

7477
- name: Bump version
75-
run: sed -i "" "s/MARKETING_VERSION = .*/MARKETING_VERSION = ${{ github.event.inputs.nextVersion }};/g" Smashburger.xcodeproj/project.pbxproj
78+
run: sed -i "" "s/MARKETING_VERSION = .*/MARKETING_VERSION = 1.1.0;/g" Smashburger.xcodeproj/project.pbxproj
7679

7780
- name: Set up Git
7881
run: |
@@ -82,12 +85,12 @@ jobs:
8285
- name: Commit changes
8386
run: |
8487
git add .
85-
git commit -m "[Chore] Bump version to ${{ github.event.inputs.nextVersion }}"
88+
git commit -m "[Chore] Bump version to 1.1.0"
8689
git push origin HEAD
8790
8891
- name: Create pull request
8992
run: |
90-
echo -e "## What happened 👀\n\nBump version to ${{ github.event.inputs.nextVersion }}" > body
91-
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"
93+
echo -e "## What happened 👀\n\nBump version to 1.1.0" > body
94+
export body=$(cat body) ; gh pr create --draft -B develop -H chore/bump-version-to-1.1.0 -t '[Chore] Bump version to 1.1.0' -b "$body"
9295
env:
9396
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)