From 271153ebfbd95c8218fa7c31be6ce9e655e3d7d3 Mon Sep 17 00:00:00 2001 From: Juliandocode <53322908+donggook-me@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:53:46 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c8fe1f4..b114cbc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,9 +17,16 @@ jobs: - name: Get members of "gdsc" organization id: get-members run: | - #dummy data testing - echo "GDSC_MEMBERS=donggook-me handsomem1n ChangHoon-Sung" >> $GITHUB_ENV + members=$(curl -sSL \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.GDSC_GH_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/orgs/Google-DSC-Kookmin/members | jq -r '.[].login') + # Set members as an environment variable + echo "GDSC_MEMBERS=$members" >> $GITHUB_ENV + + - name: Fetch commit history for each member id: fetch-commit-history run: |