Skip to content

Commit 3eb8bca

Browse files
committed
pr-gh-workflow fix env vars
1 parent 76dc6f9 commit 3eb8bca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/pr-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
if: github.event.pull_request.draft == false
2020
env:
2121
# Teams to apply this workflow for:
22-
TEAM_SLUGS: '["TeamX", "TeamY"]'
22+
TRAINEE_TEAMS_SLUGS: '["TeamX", "TeamY"]'
23+
# Curriculum crew team slug:
24+
CURRICULUM_CREW_TEAM_SLUG: 'curriculum-crew'
2325
# The PR comment:
2426
COMMENT_BODY: |
2527
hej @${{ github.event.pull_request.user.login }}
@@ -30,9 +32,9 @@ jobs:
3032
uses: actions/github-script@v7
3133
with:
3234
script: |
33-
const traineeTeamSlugs = JSON.parse(process.env.TEAM_SLUGS);
35+
const traineeTeamSlugs = JSON.parse(process.env.TRAINEE_TEAMS_SLUGS);
3436
const authorUsername = context.payload.pull_request.user.login;
35-
const curriculumCrewTeamSlug = 'curriculum-crew';
37+
const curriculumCrewTeamSlug = process.env.CURRICULUM_CREW_TEAM_SLUG;
3638
3739
try {
3840
await github.rest.teams.getMembershipForUserInOrg({

0 commit comments

Comments
 (0)