-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
95 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
- dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: HA and HACS Validate | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ha_and_hacs_validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Hassfest validation | ||
uses: home-assistant/actions/hassfest@master | ||
- name: HACS validation | ||
uses: hacs/action@main | ||
with: | ||
category: integration | ||
ignore: brands |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Update Version and Create Zip on Release | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
update_version: | ||
if: ${{ github.event_name == 'release' && github.event.release.prerelease == false && github.event.release.draft == false }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Debug Variables | ||
run: | | ||
echo "github.event_name: ${{ github.event_name }}" | ||
echo "github.ref_name: ${{ github.ref_name }}" | ||
echo "github.event.repository.default_branch: ${{ github.event.repository.default_branch }}" | ||
echo "github.event.release.target_commitish: ${{ github.event.release.target_commitish }}" | ||
echo "github.event.release.prerelease: ${{ github.event.release.prerelease }}" | ||
echo "github.event.release.draft: ${{ github.event.release.draft }}" | ||
- name: Update Version in Manifest | ||
run: | | ||
sed -i 's/\"version\"\s*\:\s*\".*\"/\"version\"\:\"${{ github.ref_name }}\"/g' ./custom_components/opnsense/manifest.json | ||
- name: Update Version in const.py | ||
run: | | ||
sed -i 's/VERSION \= \".*\"/VERSION \= \"${{ github.ref_name }}\"/' ./custom_components/opnsense/const.py | ||
- name: Commit & Push Version Changes | ||
uses: actions-js/push@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.event.release.target_commitish }} | ||
message: 'Updating to version ${{ github.ref_name }}' | ||
|
||
create_zip: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Create Zip | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: 'opnsense.zip' | ||
directory: ./custom_components/opnsense | ||
- name: Upload Zip to Release | ||
if: ${{ github.event_name == 'release' }} | ||
uses: Roang-zero1/[email protected] | ||
with: | ||
args: ./custom_components/opnsense/opnsense.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Add Zip to Action | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: actions/[email protected] | ||
with: | ||
name: opnsense | ||
path: ./custom_components/opnsense/opnsense.zip | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "OPNsense integration for Home Assistant", | ||
"homeassistant": "2022.4.0", | ||
"render_readme": true | ||
"homeassistant": "2022.4.0b0", | ||
"zip_release": true, | ||
"filename": "opnsense.zip" | ||
} |