From 7a5a65bba58fbaf78e71cc3a6720a0686f696392 Mon Sep 17 00:00:00 2001 From: eq19 Date: Fri, 4 Oct 2024 10:53:32 +0000 Subject: [PATCH] Update action.yml --- .github/action.yml | 13 +------------ .github/entrypoint/artifact.sh | 1 + 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/action.yml b/.github/action.yml index 57a06a3f18953..b60a2939ae4f6 100644 --- a/.github/action.yml +++ b/.github/action.yml @@ -101,21 +101,10 @@ runs: if (( $TOTAL_COUNT != 0 )); then gh api --method DELETE -H "${HEADER}" /repos/${{ github.repository }}/actions/runners/${RUNNER_ID}; fi - name: 💎 Set ID Token - #if: runner.os == 'Windows' - id: 'auth' + if: runner.os == 'Windows' uses: 'google-github-actions/auth@v2' with: - token_format: 'id_token' credentials_json: ${{ inputs.credentials }} - id_token_audience: 'https://us-central1-feedmapping.cloudfunctions.net/function' - - #Ref: https://github.com/google-github-actions/auth/blob/main/docs/EXAMPLES.md#generating-an-id-token-jwt - - name: Run identity - if: runner.os != 'Windows' - shell: bash - run: | - curl -s -X POST https://us-central1-feedmapping.cloudfunctions.net/function \ - -H "Authorization: Bearer ${{ steps.auth.outputs.id_token }}" -H "Content-Type: application/json" -d '{}' - name: 💎 Setup Gcloud if: runner.os == 'Windows' diff --git a/.github/entrypoint/artifact.sh b/.github/entrypoint/artifact.sh index d8d17bce5fd41..1a2f67171757a 100755 --- a/.github/entrypoint/artifact.sh +++ b/.github/entrypoint/artifact.sh @@ -116,6 +116,7 @@ jekyll_build() { echo -e "\n$hr\nWORKSPACE\n$hr" cp -R ${RUNNER_TEMP}/gistdir/* . && mkdir ${RUNNER_TEMP}/workdir/_data + echo 'orgs_json='$(cat ${RUNNER_TEMP}/orgs.json) >> ${GITHUB_OUTPUT} mv -f ${RUNNER_TEMP}/orgs.json ${RUNNER_TEMP}/workdir/_data/orgs.json }