mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

There are been several discussions in recent PRs about the docs related to contributing not being very discoverable. Move these docs from doc/guides/ to doc/contributing. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/41408 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: James M Snell <jasnell@gmail.com>
60 lines
1.9 KiB
YAML
60 lines
1.9 KiB
YAML
name: Auto Start CI
|
|
|
|
on:
|
|
schedule:
|
|
# Runs every five minutes (fastest the scheduler can run). Five minutes is
|
|
# optimistic, it can take longer to run.
|
|
# To understand why `schedule` is used instead of other events, refer to
|
|
# ./doc/contributing/commit-queue.md
|
|
- cron: "*/5 * * * *"
|
|
|
|
env:
|
|
NODE_VERSION: lts/*
|
|
|
|
jobs:
|
|
get_prs_for_ci:
|
|
if: github.repository == 'nodejs/node'
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
numbers: ${{ steps.get_prs_for_ci.outputs.numbers }}
|
|
steps:
|
|
- name: Get Pull Requests
|
|
id: get_prs_for_ci
|
|
run: >
|
|
gh pr list \
|
|
--repo ${{ github.repository }} \
|
|
--label 'request-ci' \
|
|
--json 'number' \
|
|
-t '::set-output name=numbers::{{ range . }}{{ .number }} {{ end }}' \
|
|
--limit 100
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
startCI:
|
|
needs: get_prs_for_ci
|
|
if: needs.get_prs_for_ci.outputs.numbers != ''
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
# Install dependencies
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
- name: Install node-core-utils
|
|
run: npm install -g node-core-utils
|
|
|
|
- name: Setup node-core-utils
|
|
run: |
|
|
ncu-config set username ${{ secrets.JENKINS_USER }}
|
|
ncu-config set token none
|
|
ncu-config set jenkins_token ${{ secrets.JENKINS_TOKEN }}
|
|
ncu-config set owner "${{ github.repository_owner }}"
|
|
ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)"
|
|
|
|
- name: Start the CI
|
|
run: ./tools/actions/start-ci.sh ${{ needs.get_prs_for_ci.outputs.numbers }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|