Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
psimsa committed Jul 10, 2023
1 parent 638407c commit acaeba5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
version:
description: 'Version'
required: true
create-tag:
description: 'Create tag'
required: true
default: 'false'

jobs:
release:
Expand Down Expand Up @@ -37,7 +41,18 @@ jobs:
git config --global user.name "Pavel Simsa"
git config --global user.email "pavel@simsa.cz"
git add release_const.py manifest.json
git commit -m "Creating release"
git commit -m "Setting release variables to ${{ github.event.inputs.version }}"
- name: Push changes
working-directory: ./custom_components/oig_cloud
if: ${{ github.event.inputs.create-tag != 'true' }}
run: |
git push
- name: Create tag
if: ${{ github.event.inputs.create-tag == 'true' }}
working-directory: ./custom_components/oig_cloud
run: |
git tag -a v${{ github.event.inputs.version }} -m "Version ${{ github.event.inputs.version }}"
git push --tags
Expand Down

0 comments on commit acaeba5

Please sign in to comment.