Skip to content

Commit

Permalink
Add environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasanince committed Nov 9, 2023
1 parent 0ccf18e commit 5ffd711
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
uses: withastro/action@v1
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
HIDDEN_REPOS: ${{ secrets.HIDDEN_REPOS }}
HIDDEN_MEMBERS: ${{ secrets.HIDDEN_MEMBERS }}

deploy:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion src/views/open-source-projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const HIDDEN_REPOS = import.meta.env.HIDDEN_REPOS.split(' ');
const data = await githubClient
.get('https://api.github.com/orgs/craftgate/repos')
.then((res: Array<GithubRepo>) =>
res.filter((repo) => !HIDDEN_REPOS.split(' ').includes(repo.name)),
res.filter((repo) => !HIDDEN_REPOS.includes(repo.name)),
);
---

Expand Down
4 changes: 2 additions & 2 deletions src/views/team.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { githubClient } from '@/utils';
import TeamMemberCard from '@/components/team-member-card.astro';
const HIDDEN_MEMBERS = import.meta.env.HIDDEN_MEMBERS;
const HIDDEN_MEMBERS = import.meta.env.HIDDEN_MEMBERS.split(' ');
const data = await githubClient
.get('https://api.github.com/orgs/craftgate/members')
.then((res: Array<Omit<GithubUser, 'name'>>) =>
res.filter((member) => !HIDDEN_MEMBERS.split(' ').includes(member.login)),
res.filter((member) => !HIDDEN_MEMBERS.includes(member.login)),
)
.then((members) => {
return Promise.all(
Expand Down

0 comments on commit 5ffd711

Please sign in to comment.