Skip to content

this is terrible

this is terrible #12

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Pull Request or Push

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 30, Col: 5): Unexpected value 'env' .github/workflows/pr.yml (Line: 33, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TEST_ENV_VARS
TEST_ENV_VARS: ${{ needs.encode-secrets.outputs.TEST_ENV_VARS }}
with:
TEST_ENV_VARS: ${{ env.TEST_ENV_VARS }}