mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/8f152de45cc393bb48ce5d89d36b731f54556e65...b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> PR-URL: https://github.com/nodejs/node/pull/51334 Refs: https://github.com/actions/setup-node/commit/b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
73 lines
2.2 KiB
YAML
73 lines
2.2 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 * * * *'
|
|
|
|
concurrency: ${{ github.workflow }}
|
|
|
|
# todo (node-fetch not working on 18, waiting for node-core-utils to fix)
|
|
env:
|
|
NODE_VERSION: 16
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
get-prs-for-ci:
|
|
permissions:
|
|
pull-requests: read
|
|
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: >
|
|
numbers=$(gh pr list \
|
|
--repo ${{ github.repository }} \
|
|
--label 'request-ci' \
|
|
--json 'number' \
|
|
-t '{{ range . }}{{ .number }} {{ end }}' \
|
|
--limit 5)
|
|
echo "numbers=$numbers" >> $GITHUB_OUTPUT
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
start-ci:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
needs: get-prs-for-ci
|
|
if: needs.get-prs-for-ci.outputs.numbers != ''
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
|
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 "${{ secrets.GH_USER_TOKEN }}"
|
|
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 }}
|