Skip to content

Commit

Permalink
port github workflow options for auto patching version and issue labe…
Browse files Browse the repository at this point in the history
…l/closing management from remcom fork
  • Loading branch information
sfstar committed Jan 29, 2025
1 parent 9e655ae commit 77aca98
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get version
id: version
uses: home-assistant/actions/helpers/version@master
- name: Patch manifest and zip
run: |
sed -i 's/v0.0.0/${{ steps.version.outputs.version }}/' custom_components/victron/manifest.json
cd custom_components/victron/
zip ../../victron.zip ./* -x '.*'
- uses: JasonEtco/upload-to-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ./victron.zip application/zip
4 changes: 4 additions & 0 deletions .github/workflows/issue-label-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label-alias:
bug: 'bug'
feature_request: 'feature_request'
question: 'question'
18 changes: 18 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Close stale issues/pull requests"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
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 7 days'
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days'
days-before-stale: 30
days-before-close: 7
operations-per-run: 500
exempt-issue-labels: 'on-hold'
3 changes: 3 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "Victron GX modbus TCP",
"render_readme": true,
"zip_release": true,
"filename": "victron.zip",
"hide_default_branch": false,
"homeassistant": "2025.1",
"hacs": "1.28.4"
}

0 comments on commit 77aca98

Please sign in to comment.