-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (33 loc) · 1.35 KB
/
IncreaseVersionNumber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: IncreaseVersionNumber
on:
workflow_dispatch:
inputs:
versionNumber:
description: "Version number"
required: true
jobs:
deploy:
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.2.0"
- name: Setup .netrc file
run: |
echo -e "machine maven.pkg.github.com\n login ${{ secrets.HEDVIG_GITHUB_PACKAGES_USER }}\n password ${{ secrets.HEDVIG_GITHUB_PACKAGES_TOKEN }}" > ~/.netrc
- name: Post checkout pre
run: scripts/install-tuist.sh
- name: Post checkout
run: scripts/post-checkout.sh
- name: Bump version
run: cd Projects/App && xcrun agvtool new-marketing-version ${{ github.event.inputs.versionNumber }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "Update app version to ${{ github.event.inputs.versionNumber }}"
title: "Update app version to ${{ github.event.inputs.versionNumber }}"
body: "This PR was created automatically by the ProductionDeploy action, merge this so that XCode Cloud will build and upload to App Store."
branch: "update-app-version/${{ github.event.inputs.versionNumber }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}