Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Pull Request Labeler"
name: 'Pull Request Labeler'
on:
pull_request_target:
pull_request_target:

jobs:
labeler:
Expand All @@ -9,7 +9,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Pull Request Labeler
uses: srvaroa/labeler@v1.14.0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Pull Request Labeler
uses: srvaroa/labeler@v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
2 changes: 1 addition & 1 deletion .github/workflows/merge_conflict_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
steps:
- name: Apply label
uses: eps1lon/actions-label-merge-conflict@v3.0.3
uses: eps1lon/actions-label-merge-conflict@v3
with:
dirtyLabel: 'merge conflict'
commentOnDirty: 'This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/post_coverage_to_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Post coverage Comment to PR

on:
workflow_run:
workflows: ["pytest and coverage"]
workflows: ['pytest and coverage']
types:
- completed

Expand All @@ -26,7 +26,7 @@ jobs:
# DO NOT run actions/checkout here, for security reasons
# For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- name: Post coverage Comment to PR
uses: py-cov-action/python-coverage-comment-action@v3.40
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pytest_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v6.0.2
uses: actions/checkout@v6

- name: Debug GitHub Variables
run: |
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}"
echo "github.event.pull_request.user.type: ${{ github.event.pull_request.user.type }}"
echo "PR labels: ${{ github.event_name == 'pull_request' && toJSON(github.event.pull_request.labels.*.name) || '' }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}"
echo "github.event.pull_request.user.type: ${{ github.event.pull_request.user.type }}"
echo "PR labels: ${{ github.event_name == 'pull_request' && toJSON(github.event.pull_request.labels.*.name) || '' }}"

- name: Setup Python 3 (with caching)
uses: actions/setup-python@v6.2.0
uses: actions/setup-python@v6
with:
python-version: 3.x
cache: 'pip'
Expand All @@ -50,17 +50,17 @@ jobs:
- name: Run pytest with coverage (pytest-cov)
run: pytest

- name: "Generate coverage Comment (and possibly Post to PR)"
- name: 'Generate coverage Comment (and possibly Post to PR)'
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3.40
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MINIMUM_GREEN: 90
MINIMUM_ORANGE: 70

- name: Store PR Comment to be Posted
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
uses: actions/upload-artifact@v7.0.0
uses: actions/upload-artifact@v7
with:
# If you use a different name, update COMMENT_ARTIFACT_NAME accordingly
name: python-coverage-comment-action
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
uses: actions/checkout@v6

- name: Debug Variables
run: |
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.event.release.tag_name: ${{ github.event.release.tag_name }}"
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}"
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}"
echo "github.event.release.prerelease: ${{ github.event.release.prerelease }}"
echo "github.event.release.draft: ${{ github.event.release.draft }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.event.release.tag_name: ${{ github.event.release.tag_name }}"
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}"
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}"
echo "github.event.release.prerelease: ${{ github.event.release.prerelease }}"
echo "github.event.release.draft: ${{ github.event.release.draft }}"

- name: Update Version in Manifest
if: ${{ github.event_name == 'release' && github.event.release.draft == false }}
Expand All @@ -33,11 +33,10 @@ jobs:

- name: Commit & Push Version Changes
if: ${{ github.event_name == 'release' && github.event.release.draft == false && github.event.release.prerelease == false }}
uses: actions-js/push@master
uses: stefanzweifel/git-auto-commit-action@v7
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.event.release.target_commitish }}
message: 'Updating to version ${{ github.event.release.tag_name }} [skip ci]'
commit_message: 'Updating to version ${{ github.event.release.tag_name }} [skip ci]'

- name: Update Release with Version Changes Commit
if: ${{ github.event_name == 'release' && github.event.release.draft == false && github.event.release.prerelease == false }}
Expand All @@ -52,14 +51,14 @@ jobs:

- name: Upload Zip to Release
if: ${{ github.event_name == 'release' && github.event.release.draft == false }}
uses: softprops/action-gh-release@v2.6.1
uses: softprops/action-gh-release@v2
with:
files: ./custom_components/places/places.zip
tag_name: ${{ github.event.release.tag_name }}

- name: Add Zip to Action
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v7.0.0
uses: actions/upload-artifact@v7
with:
name: places
path: ./custom_components/places/places.zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10.2.0
- uses: actions/stale@v10
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
uses: actions/checkout@v6
- name: Hassfest validation
uses: home-assistant/actions/hassfest@master
hacs_validation:
name: HACS Validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
uses: actions/checkout@v6
- name: HACS validation
uses: hacs/action@main
with:
Expand Down
Loading