Skip to content

Bump pre-commit from 3.7.0 to 3.7.1 (#411) #269

Bump pre-commit from 3.7.0 to 3.7.1 (#411)

Bump pre-commit from 3.7.0 to 3.7.1 (#411) #269

name: Release Drafter
on:
push:
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
name: Release Drafter
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Find Version
id: version
run: |
declare -i newpost
version=$(cat python_scripts/shellies_discovery_gen2.py | grep 'VERSION' | head -1 | sed -n 's/VERSION = "\(.*\)"/\1/p')
echo Version from shellies_discovery_gen2.py: $version
echo "::set-output name=version::$version"
- name: Run Release Drafter
uses: release-drafter/release-drafter@v6.0.0
with:
tag: ${{ steps.version.outputs.version }}
name: Version ${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}