Skip to content

Commit 5c3d22e

Browse files
committed
fixup!
1 parent e521d91 commit 5c3d22e

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
1-
name: Inactive Collaborators Report
1+
name: Find inactive collaborators
22

33
on:
4-
workflow_dispatch:
54
schedule:
6-
# Run once a week on Monday at 00:00 UTC
7-
- cron: '0 0 * * 1'
5+
# Run every Monday at 4:05 AM UTC.
6+
- cron: 5 4 * * 1
7+
8+
workflow_dispatch:
9+
10+
env:
11+
NODE_VERSION: lts/*
12+
13+
permissions: {}
814

915
jobs:
10-
check-inactive-collaborators:
16+
find:
17+
if: github.repository == 'nodejs/node'
1118
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
issues: write
1519

1620
steps:
1721
- name: Harden Runner
1822
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
1923
with:
2024
egress-policy: audit
2125

22-
- name: Checkout repository
23-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2427

2528
- name: Create inactive collaborators report
2629
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2730
with:
28-
github-token: ${{ secrets.READ_ONLY_ORG_TOKEN }}
31+
github-token: ${{ secrets.READ_ONLY_PUBLIC_REPO_TOKEN }}
2932
script: |
30-
const { reportInactiveCollaborators } = await import("./apps/site/scripts/find-inactive-members.mjs");
33+
const { reportInactiveCollaborators } = await import("${{github.workspace}}/apps/site/scripts/find-inactive-collaborators/index.mjs");
3134
3235
await reportInactiveCollaborators(core, github);

apps/site/scripts/find-inactive-members/__tests__/index.test.mjs renamed to apps/site/scripts/find-inactive-collaborators/__tests__/index.test.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ describe('Inactive Collaborators Tests', () => {
138138
});
139139

140140
it('handles empty inactive members list', () => {
141-
const body = formatIssueBody([], CUTOFF_DATE);
142-
assert.ok(body.includes('No inactive collaborators were found'));
143-
assert.ok(!body.includes('| Login |'));
141+
assert.ok(!formatIssueBody([], CUTOFF_DATE));
144142
});
145143

146144
it('manages issue creation and updates', async () => {
File renamed without changes.

0 commit comments

Comments
 (0)