-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (37 loc) · 1.14 KB
/
homey-app-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
38
39
40
41
42
43
44
45
name: Update Homey App Version
on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version
required: true
default: patch
options:
- major
- minor
- patch
changelog:
type: string
description: Changelog
required: true
jobs:
main:
name: Update App Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update App Version
uses: athombv/github-action-homey-app-version@master
id: update_app_version
with:
version: ${{ github.event.inputs.version }}
changelog: ${{ github.event.inputs.changelog }}
- name: Commit & Push
run: |
git config --local user.email "[email protected]"
git config --local user.name "Homey Github Actions Bot"
git add -A
git commit -m "Update Homey App Version to v${{ steps.update_app_version.outputs.version }}"
git tag "v${{ steps.update_app_version.outputs.version }}"
git push origin HEAD --tags