From f882eb5e1303ac2d9c4057cbb83ad90ff2c54660 Mon Sep 17 00:00:00 2001 From: Nathan Spencer Date: Fri, 26 Apr 2024 19:34:07 +0000 Subject: [PATCH] Update CI/CD workflows --- .github/workflows/release.yml | 4 ++-- .github/workflows/stale.yml | 17 ++++++++--------- .github/workflows/validate.yaml | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 841eedf..9ca5edf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: contents: write steps: - name: Checkout repository - uses: actions/checkout@v3.5.3 + uses: actions/checkout@v4 - name: Set version number shell: bash @@ -29,6 +29,6 @@ jobs: zip vivint.zip -r ./ - name: Upload ZIP file to release - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2 with: files: ${{ github.workspace }}/custom_components/vivint/vivint.zip diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 976e8d1..d82b0cd 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,21 +7,20 @@ name: Close stale issues and PRs on: schedule: - - cron: '30 19 * * *' + - cron: "30 19 * * *" jobs: stale: - runs-on: ubuntu-latest permissions: issues: write pull-requests: write steps: - - uses: actions/stale@v7 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue has now been marked as stale and will be closed if no further activity occurs.' - stale-pr-message: 'This PR has now been marked as stale and will be closed if no further activity occurs.' - exempt-issue-labels: 'enhancement' - days-before-stale: 30 + - uses: actions/stale@v9 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: "This issue has now been marked as stale and will be closed if no further activity occurs." + stale-pr-message: "This PR has now been marked as stale and will be closed if no further activity occurs." + exempt-issue-labels: "enhancement" + days-before-stale: 30 diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index fc1b5f9..df647fb 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -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: