mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-25 12:35:19 +01:00
583a97066a
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
|
|
name: Release Drafter
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
update_release_draft:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: release-drafter/release-drafter@v5
|
|
id: release-draft
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# Update version number in setup.py
|
|
- uses: actions/checkout@v3
|
|
- name: Calculate version
|
|
id: version
|
|
run: |
|
|
tag="${{ steps.release-draft.outputs.tag_name }}"
|
|
echo "::set-output name=version::${tag:1}"
|
|
|
|
- name: Set setup.py version
|
|
run: |
|
|
sed -i "s/VERSION = .*/VERSION = \"${{ steps.version.outputs.version }}\"/g" setup.py
|
|
# github actions email from here: https://github.community/t/github-actions-bot-email-address/17204
|
|
- name: Commit changes
|
|
run: |
|
|
if ! git diff --quiet; then
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git commit -am "Bump version to ${{ steps.version.outputs.version }}"
|
|
git push
|
|
fi
|