Skip to content

Commit

Permalink
Merge branch 'ioBroker:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Smart-Gang authored Sep 24, 2024
2 parents 76a92cb + 10dce3a commit a30cad0
Show file tree
Hide file tree
Showing 38 changed files with 2,611 additions and 1,055 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
]
},
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 2022
}
}
8 changes: 6 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ on:

jobs:
check:
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 check
env:
OWN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IOBBOT_GITHUB_TOKEN: ${{ secrets.IOBBOT_GITHUB_TOKEN }}
GITHUB_REF: ${{ env.GITHUB_REF }}
GITHUB_EVENT_PATH: ${{ env.GITHUB_EVENT_PATH }}
10 changes: 8 additions & 2 deletions .github/workflows/checkArchived.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Check archived repostories

on:
workflow_dispatch:

schedule:
# * is a special character in YAML, so you have to quote this string
# every sunday at 3:33
- cron: '33 3 * * 0'

jobs:
check:
name: check archived
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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/checkNpm.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: Check npm access

on:
workflow_dispatch:

schedule:
# * is a special character in YAML, so you have to quote this string
# daily at 2:2
- cron: '22 2 * * *'

jobs:
check-npms:
name: check npm access
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
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/checkRepositoryFiles.yml
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 }}
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check if PR should be auto-merged
uses: ahmadnassri/action-dependabot-auto-merge@v2
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/handleReminder.yml
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 }}
21 changes: 18 additions & 3 deletions .github/workflows/manualAction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,31 @@ name: Manual action
# configure manual trigger
on:
workflow_dispatch:

inputs:
action:
type: choice
description: action to perform
options:
- closeIssue
- reopenIssue
required: true
repository:
type: string
issue:
type: string

jobs:
manual-action:
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 manualAction
env:
OWN_GITHUB_TOKEN: ${{ secrets.OWN_GITHUB_TOKEN }}
ACTION: ${{ github.event.inputs.action }}
REPOSITORY: ${{ github.event.inputs.repository }}
ISSUE: ${{ github.event.inputs.issue }}
26 changes: 26 additions & 0 deletions .github/workflows/newPrComment.yml
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: ["*📬"]
})
14 changes: 10 additions & 4 deletions .github/workflows/readyForStable.yml
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 }}

7 changes: 5 additions & 2 deletions .github/workflows/setLabels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ on:

jobs:
setLabels:
name: set labels
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
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/setStableTag.yml
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 }}
31 changes: 31 additions & 0 deletions .github/workflows/setTag.yml
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 }}
Loading

0 comments on commit a30cad0

Please sign in to comment.