-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to centralized GitHub Action Workflows
- Loading branch information
Showing
8 changed files
with
42 additions
and
171 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,20 +3,12 @@ name: Sync labels | |
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- .github/labels.yml | ||
schedule: | ||
- cron: "34 5 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
labels: | ||
name: ♻️ Sync labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: 🚀 Run Label Syncer | ||
uses: micnncim/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/labels.yaml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -12,22 +12,5 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
json: | ||
name: JSON Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: 🚀 Run JQ | ||
run: | | ||
shopt -s globstar | ||
cat **/*.json | jq '.' | ||
yamllint: | ||
name: YAMLLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⤵️ Check out code from GitHub | ||
uses: actions/[email protected] | ||
- name: 🚀 Run YAMLLint | ||
uses: frenck/[email protected] | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/repository-lint.yaml@main |
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 |
---|---|---|
|
@@ -8,14 +8,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
lock: | ||
name: 🔒 Lock closed issues and PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/[email protected] | ||
with: | ||
github-token: ${{ github.token }} | ||
issue-inactive-days: "30" | ||
issue-lock-reason: "" | ||
pr-inactive-days: "1" | ||
pr-lock-reason: "" | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/lock.yaml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,17 @@ | ||
--- | ||
name: PR Labels | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
|
||
jobs: | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/pr-labels.yaml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -7,20 +7,15 @@ on: | |
types: ["update"] | ||
|
||
jobs: | ||
publish: | ||
name: Publish add-on update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🚀 Run Repository Updater | ||
uses: hassio-addons/[email protected] | ||
with: | ||
addon: ${{ github.event.client_payload.addon }} | ||
repository: ${{ github.repository }} | ||
token: ${{ secrets.UPDATER_TOKEN }} | ||
workflows: | ||
uses: hassio-addons/workflows/.github/workflows/repository-updater.yaml@main | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
UPDATER_TOKEN: ${{ secrets.UPDATER_TOKEN }} | ||
|
||
announce: | ||
name: Announce add-on update | ||
needs: publish | ||
needs: workflows | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📢 Announce on Discord server | ||
|
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,6 +1,8 @@ | ||
--- | ||
ignore: | | ||
*/translations/*.yaml | ||
*/config.yaml | ||
*/config.yml | ||
rules: | ||
braces: | ||
level: error | ||
|