this is terrible #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request or Push | ||
on: | ||
push: | ||
branches: | ||
- 'main' # Run on pushes to main | ||
tags-ignore: | ||
- '*' # Ignore pushes to tags | ||
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 | ||
needs: encode_secrets | ||
env: | ||
Check failure on line 30 in .github/workflows/pr.yml GitHub Actions / Pull Request or PushInvalid workflow file
|
||
TEST_ENV_VARS: ${{ needs.encode-secrets.outputs.TEST_ENV_VARS }} | ||
with: | ||
TEST_ENV_VARS: ${{ env.TEST_ENV_VARS }} |