Skip to content

Commit 0c41dc8

Browse files
authored
Merge pull request #10 from Mesteery/actions-update
build: update actions file
2 parents 0d88c14 + 2527749 commit 0c41dc8

19 files changed

Lines changed: 105 additions & 112 deletions

.github/workflows/authors.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "authors update"
1+
name: authors update
22
on:
33
workflow_dispatch:
44

@@ -8,15 +8,22 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010
with:
11-
fetch-depth: '0' # this is required to actually get all the authors
12-
- run: "tools/update-authors.js" # run the AUTHORS tool
11+
fetch-depth: 0 # this is required to actually get all the authors
12+
- run: tools/update-authors.js # run the AUTHORS tool
1313
- uses: gr2m/create-or-update-pull-request-action@v1 # create a PR or update the Action's existing PR
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
with:
17-
title: "meta: update AUTHORS"
18-
body: "If this PR exists, there's presumably new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.\n\nPlease note that there might be duplicate entries. If there are, please remove them and add the duplicate emails to .mailmap directly to this PR."
19-
branch: "actions/authors-update" # custom branch *just* for this Action.
20-
commit-message: "meta: update AUTHORS"
17+
title: 'meta: update AUTHORS'
18+
commit-message: 'meta: update AUTHORS'
2119
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
20+
body: >
21+
If this PR exists, there's presumably new additions to the AUTHORS file.
22+
This is an automatically generated PR by the `authors.yml` GitHub Action,
23+
which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.
24+
25+
26+
Please note that there might be duplicate entries. If there are, please remove them and
27+
add the duplicate emails to .mailmap directly to this PR.
28+
branch: actions/authors-update # custom branch *just* for this Action.
2229
labels: meta

.github/workflows/auto-start-ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Auto Start CI
32

43
on:
@@ -7,7 +6,7 @@ on:
76
# optimistic, it can take longer to run.
87
# To understand why `schedule` is used instead of other events, refer to
98
# ./doc/guides/commit-queue.md
10-
- cron: "*/5 * * * *"
9+
- cron: '*/5 * * * *'
1110

1211
env:
1312
NODE_VERSION: lts/*
@@ -34,16 +33,14 @@ jobs:
3433
3534
# Get Pull Requests
3635
- name: Get Pull Requests
37-
uses: octokit/graphql-action@v2.x
36+
uses: octokit/graphql-action@v2
3837
id: get_prs_for_ci
3938
with:
4039
query: |
4140
query prs($owner:String!, $repo:String!) {
4241
repository(owner:$owner, name:$repo) {
4342
pullRequests(labels: ["request-ci"], states: OPEN, last: 100) {
44-
nodes {
45-
number
46-
}
43+
nodes { number }
4744
}
4845
}
4946
}

.github/workflows/build-tarball.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,15 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
66
push:
7-
branches:
8-
- master
9-
- main
10-
- v[0-9]+.x-staging
11-
- v[0-9]+.x
7+
branches: [master, main, 'v[0-9]+.x-staging', 'v[0-9]+.x']
128

139
env:
1410
FLAKY_TESTS: dontcare
11+
PYTHON_VERSION: 3.9
1512

1613
jobs:
1714
build-tarball:
1815
if: github.event.pull_request.draft == false
19-
env:
20-
PYTHON_VERSION: 3.9
2116
runs-on: ubuntu-latest
2217
steps:
2318
- uses: actions/checkout@v2
@@ -36,13 +31,11 @@ jobs:
3631
mkdir tarballs
3732
mv *.tar.gz tarballs
3833
- name: Upload tarball artifact
39-
uses: actions/upload-artifact@v1
34+
uses: actions/upload-artifact@v2
4035
with:
4136
name: tarballs
4237
path: tarballs
4338
test-tarball-linux:
44-
env:
45-
PYTHON_VERSION: 3.9
4639
needs: build-tarball
4740
runs-on: ubuntu-latest
4841
steps:
@@ -54,9 +47,10 @@ jobs:
5447
- name: Environment Information
5548
run: npx envinfo
5649
- name: Download tarball
57-
uses: actions/download-artifact@v1
50+
uses: actions/download-artifact@v2
5851
with:
5952
name: tarballs
53+
path: tarballs
6054
- name: Extract tarball
6155
run: |
6256
tar xzf tarballs/*.tar.gz -C $RUNNER_TEMP

.github/workflows/build-windows.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ name: build-windows
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore: ['**.md', doc/**, AUTHORS, .mailmap, .github/**, '!.github/workflows/build-windows.yml']
67
push:
7-
branches:
8-
- master
9-
- main
10-
- canary
11-
- v[0-9]+.x-staging
12-
- v[0-9]+.x
8+
branches: [master, main, canary, 'v[0-9]+.x-staging', 'v[0-9]+.x']
9+
paths-ignore: ['**.md', doc/**, AUTHORS, .mailmap, .github/**, '!.github/workflows/build-windows.yml']
1310

1411
env:
1512
PYTHON_VERSION: 3.9

.github/workflows/close-stalled.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
name: Close stalled issues and PRs
22
on:
33
schedule:
4-
- cron: "0 0 * * *"
4+
- cron: 0 0 * * *
5+
6+
env:
7+
CLOSE_MESSAGE: >
8+
Closing this because it has stalled. Feel free to reopen if this issue is still relevant,
9+
or to ping the collaborator who labelled it stalled if you have any questions.
510
611
jobs:
712
stale:
813
if: github.repository == 'nodejs/node'
914
runs-on: ubuntu-latest
1015
steps:
11-
- uses: actions/stale@v3
16+
- uses: actions/stale@v4
1217
with:
1318
repo-token: ${{ secrets.GITHUB_TOKEN }}
1419
days-before-close: 30
1520
stale-pr-label: stalled
1621
stale-issue-label: stalled
17-
close-issue-message: Closing this because it has stalled. Feel free to reopen if this issue is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.
18-
close-pr-message: Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.
22+
close-issue-message: ${{ env.CLOSE_MESSAGE }}
23+
close-pr-message: ${{ env.CLOSE_MESSAGE }}
1924
# used to filter issues to check whether or not should be closed, avoids hitting maximum operations allowed if needing to paginate through all open issues
2025
only-labels: stalled
2126
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
name: Comment on issues and PRs when labelled
1+
name: Comment on issues and PRs when labeled
22
on:
33
issues:
44
types: [labeled]
55
pull_request_target:
66
types: [labeled]
77

8+
env:
9+
STALE_MESSAGE: >
10+
This issue/PR was marked as stalled, it will be automatically closed in 30 days.
11+
If it should remain open, please leave a comment explaining why it should remain open.
12+
FAST_TRACK_MESSAGE: Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve.
13+
814
jobs:
915
staleComment:
10-
if: github.repository == 'nodejs/node' && github.event.label.name == 'stalled'
16+
if: github.event.label.name == 'stalled'
1117
runs-on: ubuntu-latest
1218
steps:
1319
- name: Post stalled comment
1420
env:
15-
COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }}
21+
COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }}
1622
run: |
1723
curl -X POST $COMMENTS_URL \
1824
-H "Content-Type: application/json" \
1925
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
20-
--data '{ "body": "This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open." }'
26+
--data '{ "body": "$STALE_MESSAGE" }'
2127
2228
fastTrack:
23-
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track'
29+
if: github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track'
2430
runs-on: ubuntu-latest
2531
steps:
2632
- name: Request Fast-Track
2733
env:
2834
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve."
35+
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE"

.github/workflows/commit-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Commit messages adheres to guidelines at https://goo.gl/p2fr5Q"
1+
name: Commit messages adheres to guidelines at https://goo.gl/p2fr5Q
22

33
on: [pull_request]
44

.github/workflows/commit-queue.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# be read-only, and the Action won't have access to any other repository
1313
# secrets, which it needs to access Jenkins API.
1414
schedule:
15-
- cron: "*/5 * * * *"
15+
- cron: '*/5 * * * *'
1616

1717
env:
1818
NODE_VERSION: lts/*
@@ -48,16 +48,14 @@ jobs:
4848
echo "DEFAULT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
4949
5050
- name: Get Pull Requests
51-
uses: octokit/graphql-action@v2.x
51+
uses: octokit/graphql-action@v2
5252
id: get_mergable_pull_requests
5353
with:
5454
query: |
5555
query release($owner:String!,$repo:String!, $base_ref:String!) {
5656
repository(owner:$owner, name:$repo) {
5757
pullRequests(baseRefName: $base_ref, labels: ["commit-queue"], states: OPEN, last: 100) {
58-
nodes {
59-
number
60-
}
58+
nodes { number }
6159
}
6260
}
6361
}

.github/workflows/coverage-linux.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ on:
55
types: [opened, synchronize, reopened, ready_for_review]
66
paths-ignore:
77
- '**.md'
8-
- 'benchmark/**'
9-
- 'deps/**'
10-
- 'doc/**'
8+
- benchmark/**
9+
- deps/**
10+
- doc/**,
11+
- AUTHORS
12+
- .mailmap
13+
- .github/**
14+
- '!.github/workflows/coverage-linux.yml'
1115
push:
12-
branches:
13-
- master
14-
- main
16+
branches: [master, main]
1517
paths-ignore:
1618
- '**.md'
17-
- 'benchmark/**'
18-
- 'deps/**'
19-
- 'doc/**'
19+
- benchmark/**
20+
- deps/**
21+
- doc/**
22+
- 'tools/**'
23+
- AUTHORS
24+
- .mailmap
25+
- .github/**
26+
- '!.github/workflows/coverage-linux.yml'
2027

2128
env:
2229
PYTHON_VERSION: 3.9

.github/workflows/coverage-windows.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'deps/**'
1010
- 'doc/**'
1111
- 'tools/**'
12+
- AUTHORS
13+
- .mailmap
14+
- .github/**
15+
- '!.github/workflows/coverage-windows.yml'
1216
push:
1317
branches:
1418
- master
@@ -19,6 +23,10 @@ on:
1923
- 'deps/**'
2024
- 'doc/**'
2125
- 'tools/**'
26+
- AUTHORS
27+
- .mailmap
28+
- .github/**
29+
- '!.github/workflows/coverage-windows.yml'
2230

2331
env:
2432
PYTHON_VERSION: 3.9

0 commit comments

Comments
 (0)