diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 6547da2f..4838e81e 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,6 +1,6 @@ -name: "Pull Request Labeler" +name: 'Pull Request Labeler' on: - pull_request_target: + pull_request_target: jobs: labeler: @@ -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 }}' diff --git a/.github/workflows/merge_conflict_labeler.yml b/.github/workflows/merge_conflict_labeler.yml index 113bd876..fc0e498d 100644 --- a/.github/workflows/merge_conflict_labeler.yml +++ b/.github/workflows/merge_conflict_labeler.yml @@ -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.' diff --git a/.github/workflows/post_coverage_to_pr.yml b/.github/workflows/post_coverage_to_pr.yml index 2546288f..2e96943b 100644 --- a/.github/workflows/post_coverage_to_pr.yml +++ b/.github/workflows/post_coverage_to_pr.yml @@ -2,7 +2,7 @@ name: Post coverage Comment to PR on: workflow_run: - workflows: ["pytest and coverage"] + workflows: ['pytest and coverage'] types: - completed @@ -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 }} diff --git a/.github/workflows/pytest_coverage.yml b/.github/workflows/pytest_coverage.yml index 6e030628..8f344fe9 100644 --- a/.github/workflows/pytest_coverage.yml +++ b/.github/workflows/pytest_coverage.yml @@ -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' @@ -50,9 +50,9 @@ 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 @@ -60,7 +60,7 @@ jobs: - 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3c17b3d..f2585120 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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 }} @@ -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 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 308353b2..da4a6315 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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.' diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index ec54282f..9ef83c6d 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -14,7 +14,7 @@ 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: @@ -22,7 +22,7 @@ jobs: 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: