Skip to content

Commit

Permalink
chore(actions): Update github actions
Browse files Browse the repository at this point in the history
Fix release-drafter config
  • Loading branch information
DarwinsBuddy committed Dec 3, 2024
1 parent 4145706 commit a2eae25
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
18 changes: 13 additions & 5 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
name-template: v$NEXT_MINOR_VERSION
tag-template: v$NEXT_MINOR_VERSION
categories:
- title: ️ Dependencies
- title: ️Dependencies
label: dependencies
- title: 🚀 Features
label: feature
labels:
- 'feature'
- 'enhancement'
- title: 🐛 Bug Fixes
label: fix
labels:
- 'patch'
- 'fix'
- 'bug'
- 'bugfix'
- title: 🧰 Maintenance
label: chore

version-resolver:
major:
labels:
- 'major'
- 'feature'
minor:
labels:
- 'minor'
- 'fix'
- 'feature'
patch:
labels:
- 'patch'
- 'dependencies'
- 'chore'
- 'bug'
- 'fix'
- 'bugfix'
default: patch

template: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hassfest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
if: github.repository_owner == 'DarwinsBuddy'
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"
- uses: "home-assistant/actions/hassfest@master"
7 changes: 5 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
coverage run -m pytest && coverage report -m && coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
files: coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "actions/checkout@v4"
- name: HACS validation
uses: "hacs/action@main"
with:
Expand Down

0 comments on commit a2eae25

Please sign in to comment.