From a209a8564ea9a576819e0242cfa81f3e204fc841 Mon Sep 17 00:00:00 2001 From: David Rapan Date: Tue, 10 Dec 2024 16:19:53 +0100 Subject: [PATCH] chore: Update workflows --- .github/workflows/assets.yaml | 10 ++++++---- .github/workflows/butler.yaml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/assets.yaml b/.github/workflows/assets.yaml index 8ba8bb4..417c2a0 100644 --- a/.github/workflows/assets.yaml +++ b/.github/workflows/assets.yaml @@ -3,21 +3,23 @@ on: release: types: - created +env: + name: solarman jobs: build: runs-on: ubuntu-latest permissions: contents: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - name: Zip run: | - cd ${{ github.workspace }}/custom_components/solarman - zip -r solarman.zip . -x ".git/*" ".github/*" ".gitignore" ".gitmodules" + cd ${{ github.workspace }}/custom_components + zip -r $name.zip $name/* -x ".git/*" ".github/*" ".gitignore" ".gitmodules" - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: ${{ github.workspace }}/custom_components/solarman/solarman.zip + files: ${{ github.workspace }}/custom_components/${{ name }}.zip diff --git a/.github/workflows/butler.yaml b/.github/workflows/butler.yaml index 1cdc0d9..a07cb88 100644 --- a/.github/workflows/butler.yaml +++ b/.github/workflows/butler.yaml @@ -9,7 +9,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@v9 with: days-before-issue-stale: 30 days-before-issue-close: 14