Bump JetHome subversion within action #475
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |