forked from ioBroker/ioBroker.repositories
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ioBroker:master' into master
- Loading branch information
Showing
38 changed files
with
2,611 additions
and
1,055 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 |
---|---|---|
|
@@ -30,6 +30,6 @@ | |
] | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
"ecmaVersion": 2022 | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Check repository files | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
# * is a special character in YAML, so you have to quote this string | ||
# every day | ||
- cron: '45 */6 * * *' | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: {} | ||
|
||
concurrency: | ||
group: stable-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
name: check repository files | ||
if: | | ||
github.repository == 'ioBroker/ioBroker.repositories' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 14 | ||
- run: npm i | ||
- run: npm run test | ||
env: | ||
OWN_GITHUB_TOKEN: ${{ secrets.OWN_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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This workflow will triage pull requests and apply a label based on the | ||
# paths that are modified in the pull request. | ||
|
||
name: Handle Reminder | ||
|
||
on: | ||
pull_request_target: | ||
types: [labeled] | ||
|
||
issue_comment: | ||
|
||
workflow_dispatch: | ||
|
||
schedule: | ||
# * is a special character in YAML, so you have to quote this string | ||
# every day | ||
- cron: '0 1 * * *' | ||
|
||
# avoid concurrengt runs | ||
#concurrency: | ||
# group: check-reminder | ||
# cancel-in-progress: true | ||
|
||
jobs: | ||
handleReminder: | ||
name: handlereminder | ||
if: | | ||
github.repository == 'ioBroker/ioBroker.repositories' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm i | ||
- run: npm run handleReminder | ||
env: | ||
OWN_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
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,26 @@ | ||
name: New PR comment | ||
|
||
on: issue_comment | ||
|
||
jobs: | ||
pr_commented: | ||
# This job only runs for pull request comments | ||
name: PR comment | ||
if: | | ||
github.repository == 'ioBroker/ioBroker.repositories' && | ||
github.event.issue.pull_request && | ||
github.event.comment.user.login != 'mcm1957' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- run: echo user ${{github.event.comment.user.login}} | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ["*📬"] | ||
}) |
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,22 +1,28 @@ | ||
name: Check ready for stable | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
schedule: | ||
# * is a special character in YAML, so you have to quote this string | ||
# every day | ||
- cron: '33 3 * * *' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
ready-for-stable: | ||
name: check ready for stable | ||
if: | | ||
github.repository == 'ioBroker/ioBroker.repositories' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm i | ||
- run: npm run stable | ||
env: | ||
OWN_GITHUB_TOKEN: ${{ secrets.OWN_GITHUB_TOKEN }} | ||
IOBBOT_GITHUB_TOKEN: ${{ secrets.IOBBOT_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
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,38 @@ | ||
# | ||
# This workflow scans a dedicated list of adapters (hardcode at setStableTag.js) and ensures that the release number listed | ||
# at sources-dist-stable.json and the release tagged as 'stable' at npm are identical. If a difference is detected, the dist-tag | ||
# at npmjs is changed to meet the contents of sources-dist-stable.json. | ||
# | ||
# This workflow is triggered by any push and additionally runs once a day | ||
# | ||
|
||
name: Set stable tag | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: [ "master" ] | ||
|
||
schedule: | ||
# * is a special character in YAML, so you have to quote this string | ||
# every day at 1:00:00 | ||
- cron: '0 1 * * *' | ||
|
||
jobs: | ||
set-stable-tag: | ||
name: set stable tag | ||
if: | | ||
github.repository == 'ioBroker/ioBroker.repositories' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm i | ||
- run: npm run setStableTag | ||
env: | ||
OWN_GITHUB_TOKEN: ${{ secrets.OWN_GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TAG }} |
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,31 @@ | ||
name: Set tag | ||
|
||
# set tag | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
type: choice | ||
description: select tag to set | ||
options: | ||
- dev | ||
- latest | ||
- next | ||
- stable | ||
required: true | ||
adapter: | ||
type: string | ||
required: true | ||
release: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
set-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm dist-tag list iobroker.${{ github.event.inputs.adapter }} | ||
- run: npm --//registry.npmjs.org/:_authToken=${{secrets.NPM_TAG}} dist-tag add iobroker.${{ github.event.inputs.adapter }}@${{ github.event.inputs.release }} ${{ github.event.inputs.tag }} |
Oops, something went wrong.