diff --git a/.github/stale.yml b/.github/stale.yml index 0c99372a..f2111052 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,5 +1,5 @@ # Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 +daysUntilStale: 30 # Number of days of inactivity before a stale issue is closed daysUntilClose: 7 # Label to use when marking an issue as stale diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81507ca4..d035e958 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] jobs: - build: + ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/update_deps.yml b/.github/workflows/update_deps.yml new file mode 100644 index 00000000..2860af38 --- /dev/null +++ b/.github/workflows/update_deps.yml @@ -0,0 +1,25 @@ +name: Update dependencies +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * 0" + +jobs: + update_deps: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: dev + ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} + - uses: actions/setup-node@v2-beta + with: + node-version: 12 + - run: npm install + - run: npm ls --depth 0 --prod --parseable | tail -n +2 | grep -v "zigbee-herdsman" | xargs -I '{}' basename "{}" | xargs -I '{}' npm install '{}'@latest + - run: rm -rf node_modules npm-shrinkwrap.json && npm install && npm shrinkwrap --dev + - uses: peter-evans/create-pull-request@v2 + with: + commit-message: Update dependencies + branch: "update_deps" + title: Update dependencies diff --git a/.github/workflows/update_zh.yml b/.github/workflows/update_zh.yml index 4595efe9..c48a2cb4 100644 --- a/.github/workflows/update_zh.yml +++ b/.github/workflows/update_zh.yml @@ -15,7 +15,6 @@ jobs: with: node-version: 12 - run: npm install zigbee-herdsman@${{ github.event.client_payload.version }} --save-exact - - run: rm -rf node_modules npm-shrinkwrap.json && npm install && npm shrinkwrap --dev - uses: peter-evans/create-pull-request@v2 with: commit-message: Update zigbee-herdsman to ${{ github.event.client_payload.version }} diff --git a/.github/workflows/update_zhc.yml b/.github/workflows/update_zhc.yml index f3c2e95e..58eeb677 100644 --- a/.github/workflows/update_zhc.yml +++ b/.github/workflows/update_zhc.yml @@ -15,7 +15,6 @@ jobs: with: node-version: 12 - run: npm install zigbee-herdsman-converters@${{ github.event.client_payload.version }} --save-exact - - run: rm -rf node_modules npm-shrinkwrap.json && npm install && npm shrinkwrap --dev - uses: peter-evans/create-pull-request@v2 with: commit-message: Update zigbee-herdsman-converters to ${{ github.event.client_payload.version }}