File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,9 @@ permissions:
1515
1616jobs :
1717 release :
18+ environment : release
1819 runs-on : ubuntu-latest
1920 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- }
36-
3721 - name : Checkout
3822 uses : actions/checkout@v4
3923 with :
You can’t perform that action at this time.
0 commit comments