Skip to content

Bump JetHome subversion within action #434

Bump JetHome subversion within action

Bump JetHome subversion within action #434

name: JH Reset jethome nightly version on version bump
on:
workflow_dispatch:
push:
branches:
- main
paths:
- nightly.json
jobs:
resetversion:
name: Reset subversion
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
persist-credentials: true
ref: main
- name: Zero minor version
uses: jethome-iot/actions/armbian-jethome-version@master
id: fixversion
with:
file: 'nightly-jethome.json'
type: 'minor'
do: 'zero'
- name: Inc majom version
uses: jethome-iot/actions/armbian-jethome-version@master
id: incversion
with:
file: 'nightly-jethome.json'
type: 'major'
do: 'inc'
- shell: bash
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions"
git add stable-jethome.json
git commit -am "Clean jethome-version"
git pull
git push