Skip to content

Commit 77aca98

Browse files
committed
port github workflow options for auto patching version and issue label/closing management from remcom fork
1 parent 9e655ae commit 77aca98

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
release:
3+
types: [published]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Get version
10+
id: version
11+
uses: home-assistant/actions/helpers/version@master
12+
- name: Patch manifest and zip
13+
run: |
14+
sed -i 's/v0.0.0/${{ steps.version.outputs.version }}/' custom_components/victron/manifest.json
15+
16+
cd custom_components/victron/
17+
zip ../../victron.zip ./* -x '.*'
18+
- uses: JasonEtco/upload-to-release@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
args: ./victron.zip application/zip
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
label-alias:
2+
bug: 'bug'
3+
feature_request: 'feature_request'
4+
question: 'question'

.github/workflows/stale.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Close stale issues/pull requests"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
workflow_dispatch:
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
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'
14+
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'
15+
days-before-stale: 30
16+
days-before-close: 7
17+
operations-per-run: 500
18+
exempt-issue-labels: 'on-hold'

hacs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "Victron GX modbus TCP",
33
"render_readme": true,
4+
"zip_release": true,
5+
"filename": "victron.zip",
6+
"hide_default_branch": false,
47
"homeassistant": "2025.1",
58
"hacs": "1.28.4"
69
}

0 commit comments

Comments
 (0)