Skip to content

Commit de4e600

Browse files
committed
chore: comment user validation
1 parent de36836 commit de4e600

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ jobs:
1717
release:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Check authorization (must be in lwc-admin)
21-
uses: actions/github-script@v7
22-
with:
23-
github-token: ${{ secrets.ORG_READ_TOKEN }}
24-
script: |
25-
const org = context.repo.owner;
26-
const team_slug = 'lwc-admin';
27-
const username = context.actor;
28-
try {
29-
const res = await github.rest.teams.getMembershipForUserInOrg({ org, team_slug, username });
30-
if (res.data.state !== 'active') {
31-
core.setFailed(`User ${username} is not an active member of ${team_slug}`);
32-
}
33-
} catch {
34-
core.setFailed(`User ${username} is not a member of ${team_slug}`);
35-
}
20+
# - name: Check authorization (must be in lwc-admin)
21+
# uses: actions/github-script@v7
22+
# with:
23+
# github-token: ${{ secrets.ORG_READ_TOKEN }}
24+
# script: |
25+
# const org = context.repo.owner;
26+
# const team_slug = 'lwc-admin';
27+
# const username = context.actor;
28+
# try {
29+
# const res = await github.rest.teams.getMembershipForUserInOrg({ org, team_slug, username });
30+
# if (res.data.state !== 'active') {
31+
# core.setFailed(`User ${username} is not an active member of ${team_slug}`);
32+
# }
33+
# } catch {
34+
# core.setFailed(`User ${username} is not a member of ${team_slug}`);
35+
# }
3636

3737
- name: Checkout
3838
uses: actions/checkout@v4

0 commit comments

Comments
 (0)