Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Oct 4, 2024
1 parent e0f43c6 commit 7a5a65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .github/entrypoint/artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit 7a5a65b

Please sign in to comment.