Skip to content

chore(deps): bump actions/setup-python from 6.2.0 to 6.3.0 (#311) #271

chore(deps): bump actions/setup-python from 6.2.0 to 6.3.0 (#311)

chore(deps): bump actions/setup-python from 6.2.0 to 6.3.0 (#311) #271

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Gets semantic release info
id: semantic_release_info
uses: jossef/action-semantic-release-info@v3.0.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Update Version and Commit
if: ${{steps.semantic_release_info.outputs.version != ''}}
run: |
echo "Version: ${{steps.semantic_release_info.outputs.version}}"
sed -i "s/\"version\": \".*\"/\"version\": \"${{steps.semantic_release_info.outputs.version}}\"/g" custom_components/ha_hatch/manifest.json
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git diff
git add -A
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}"
git tag ${{ steps.semantic_release_info.outputs.git_tag }}
- name: Push changes
if: ${{steps.semantic_release_info.outputs.version != ''}}
uses: ad-m/github-push-action@v1.3.0
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branch: ${{ github.ref }}
tags: true
- name: Create GitHub Release
if: ${{steps.semantic_release_info.outputs.version != ''}}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }}
release_name: ${{ steps.semantic_release_info.outputs.git_tag }}
body: ${{ steps.semantic_release_info.outputs.notes }}
draft: false
prerelease: false