Skip to content

Commit

Permalink
no secret
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jul 17, 2024
1 parent 5370926 commit a3882bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/linters-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ jobs:
get_list_members() {
TEAM="$1"
QUOTE='"'
gh api "/orgs/$GITHUB_REPOSITORY_OWNER/teams/$TEAM/members" -X GET -f per_page=100 --jq "map(.login) | ${QUOTE}${TEAM}=\(tojson)${QUOTE}"
gh api "/orgs/nodejs/teams/$TEAM/members" -X GET -f per_page=100 --jq "map(.login) | ${QUOTE}${TEAM}=\(tojson)${QUOTE}"
}
get_list_members "collaborators" >> "$GITHUB_OUTPUT"
get_list_members "issue-triage" >> "$GITHUB_OUTPUT"
get_list_members "tsc" >> "$GITHUB_OUTPUT"
(
get_list_members "collaborators"
get_list_members "issue-triage"
get_list_members "tsc"
) || true >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN_ || secrets.GITHUB_TOKEN }}
- name: Get modified README
if: github.event_name != 'push'
run: curl "https://patch-diff.githubusercontent.com/raw/$GITHUB_REPOSITORY/pull/${PULL_ID}.diff" | git apply --include=README.md
Expand Down
2 changes: 1 addition & 1 deletion tools/lint-readme-lists.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ console.info('Lists are in the alphabetical order.');

assert.deepStrictEqual(tscMembers, new Set(), 'Some TSC members are not listed as Collaborators');

if (argv[2]) {
if (argv[2] && argv[2] !== '{}') {
const reviver = (_, value) =>
(typeof value === 'string' && value[0] === '[' && value.at(-1) === ']' ?
new Set(JSON.parse(value)) :
Expand Down

0 comments on commit a3882bd

Please sign in to comment.