Skip to content

Commit

Permalink
this is terrible
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasmhughes committed Mar 18, 2024
1 parent 5c7f538 commit eabcd10
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,24 @@ on:
pull_request:

jobs:
encode_secrets:
name: Encode Secrets
runs-on: ubuntu-latest
outputs:
TEST_ENV_VARS: ${{ steps.encode.outputs.TEST_ENV_VARS }}
steps:
- name: Encode AZURE_* secrets
id: encode-azure
run: echo -e "EITR_ID='${{ secrets.EITR_ID }}'\nEITR_SECRET='${{ secrets.EITR_SECRET }}'" | base64
- name: Set output secret
id: encode
run: echo "TEST_ENV_VARS=$(echo -n ${{ steps.encode-azure.outputs.stdout }})" >> $GITHUB_ENV

call_central_workflow:
name: CI
uses: eitrtechnologies/test-github-actions-central/.github/workflows/ci.yml@main
secrets:
EITR_ID: ${{ secrets.EITR_ID }}
EITR_SECRET: ${{ secrets.EITR_SECRET }}
needs: encode_secrets
env:
TEST_ENV_VARS: ${{ needs.encode-secrets.outputs.TEST_ENV_VARS }}
with:
TEST_ENV_VARS: ${{ env.TEST_ENV_VARS }}

0 comments on commit eabcd10

Please sign in to comment.