Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed Nov 5, 2024
1 parent b0f1fe6 commit 2643408
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/project_workflows/create_release_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
description: "Next version (eg. 1.0.0)"
required: true
type: string
pull_request:
types: [opened, reopened, edited, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -64,15 +66,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
branch: chore/bump-version-to-1.1.0

- name: Checkout code
uses: actions/checkout@v4
with:
ref: chore/bump-version-to-${{ github.event.inputs.nextVersion }}
ref: chore/bump-version-to-1.1.0

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

- name: Set up Git
run: |
Expand All @@ -82,12 +84,12 @@ jobs:
- name: Commit changes
run: |
git add .
git commit -m "[Chore] Bump version to ${{ github.event.inputs.nextVersion }}"
git commit -m "[Chore] Bump version to 1.1.0"
git push origin HEAD
- name: Create pull request
run: |
echo -e "## What happened 👀\n\nBump version to ${{ github.event.inputs.nextVersion }}" > body
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"
echo -e "## What happened 👀\n\nBump version to 1.1.0" > body
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"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2643408

Please sign in to comment.