Skip to content

Commit

Permalink
Tidy up, address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Nov 18, 2022
1 parent 1c99414 commit 268e0ed
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/acctest-oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
oidc-check:
runs-on: ubuntu-latest
outputs:
available: "${{ steps.oidc-check.outputs.available }}"
available: "${{ steps.check-oidc.outputs.available }}"
steps:
- id: oidc-check
- id: check-oidc
run: |
set -v
if [ "${ACTIONS_ID_TOKEN_REQUEST_URL}" = "" ]; then
if [[ "${ACTIONS_ID_TOKEN_REQUEST_URL}" == "" ]]; then
echo "available=false" | tee ${GITHUB_OUTPUT}
else
echo "available=true" | tee ${GITHUB_OUTPUT}
Expand All @@ -30,17 +29,8 @@ jobs:
acctest-oidc:
runs-on: ubuntu-latest
needs: [oidc-check]
if: "${{ needs.oidc-check.outputs.available == 'true' }}"
permissions:
contents: read
id-token: write
if: needs.oidc-check.outputs.available == 'true'
steps:
- run: echo |
echo AVAIL_BOOL="${AVAIL_BOOL}"
echo AVAIL_RAW="${AVAIL_RAW}"
env:
AVAIL_BOOL: "${{ needs.oidc-check.outputs.available == 'true' }}"
AVAIL_RAW: "${{ needs.oidc-check.outputs.available }}"
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit 268e0ed

Please sign in to comment.