Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinvdpol committed Sep 11, 2024
1 parent 7a7abd6 commit 90f44c3
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Release

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:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update version
uses: athombv/github-action-homey-app-version@master
id: update_version
with:
version: ${{ inputs.version }}
changelog: ${{ inputs.changelog }}

- name: Commit version
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Version ${{ steps.update_version.outputs.version }}
tagging_message: v${{ steps.update_version.outputs.version }}

- name: Publish
uses: athombv/github-action-homey-app-publish@master
id: publish
with:
personal_access_token: ${{ secrets.HOMEY_PAT }}

- name: Summary
run: echo "Release can be managed at ${{ steps.publish.outputs.url }}" >> $GITHUB_STEP_SUMMARY

- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ inputs.changelog }}
make_latest: true
tag_name: v${{ steps.update_version.outputs.version }}
7 changes: 4 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate Homey App
name: Validate

on:
workflow_dispatch:
Expand All @@ -8,10 +8,11 @@ on:
jobs:
main:
runs-on: ubuntu-latest
name: Validate Homey App

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- uses: athombv/github-action-homey-app-validate@master
with:
level: verified

0 comments on commit 90f44c3

Please sign in to comment.