Skip to content

athombv/github-action-homey-app-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Homey App Version

This GitHub Action will update the version of the current Homey app.

Inputs

version

Version. Can be either major, minor, patch, or a semver version.

Outputs

version

The new version in SemVer format.

changelog

Changelog of the new version in English.

Example usage

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

# Needed in order to push the commit and create a release
permissions:
  contents: write

jobs:
    main:
      name: Update Homey App Version
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v4

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

        - name: Commit & Push
          run: |
            git config --local user.name "github-actions[bot]"
            git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"

            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
            gh release create "v${{ steps.update_app_version.outputs.version }}" -t "v${{ steps.update_app_version.outputs.version }}" --notes "" --generate-notes
          env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
            GH_TOKEN: ${{ github.token }}