-
Notifications
You must be signed in to change notification settings - Fork 325
37 lines (37 loc) · 1.29 KB
/
set_version.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
37
name: "Version: Set Version"
on:
workflow_dispatch:
inputs:
version:
required: true
description: "New Version Number"
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.HOMEASSISTANT_SSH_DEPLOY_KEY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- run: "bundle exec fastlane set_version version:${{ github.event.inputs.version }}"
- name: Commit changes
id: commit
run: |
source Configuration/Version.xcconfig
git config --global user.name 'Home Assistant Bot'
git config --global user.email '[email protected]'
git add Configuration/Version.xcconfig
git commit -m "Bump Build to $MARKETING_VERSION ($CURRENT_PROJECT_VERSION)"
git clean -xfd
echo ::set-output name=pr_title::"$(git log -1 --pretty='%s')"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
base: master
branch: create-pull-request/bump_build
title: ${{ steps.commit.outputs.pr_title }}
body: "Automatically created by ${{ github.actor }}."
token: ${{ secrets.REPO_SCOPED_TOKEN }}