Skip to content

Commit

Permalink
chore: Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Dec 10, 2024
1 parent 9ab2597 commit d96042f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/butler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d96042f

Please sign in to comment.