Skip to content

chore: add write-env-files: true for explicit env file opt-in #33

chore: add write-env-files: true for explicit env file opt-in

chore: add write-env-files: true for explicit env file opt-in #33

Workflow file for this run

name: on-pr

Check failure on line 1 in .github/workflows/on-pr.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/on-pr.yaml

Invalid workflow file

(Line: 46, Col: 5): 'uses' is already defined, (Line: 47, Col: 5): 'uses' is already defined
on:
pull_request:
branches:
- main
types:
- labeled
- opened
- reopened
- synchronize
paths:
- '.github/workflows/on-pr.yaml'
- '.gitops/**'
- 'apis/**'
- 'examples/**'
- 'tests/**'
- 'functions/**'
- 'upbound.yaml'
permissions:
id-token: write
packages: write
contents: write
issues: write
pull-requests: write
jobs:
validate:
uses: unbounded-tech/workflows-crossplane/.github/workflows/validate.yaml@v2.20.0
with:
examples: |
[
{ "example": "examples/accounts/standard.yaml" },
{ "example": "examples/accounts/standard.yaml", "observed_resources": "examples/test/mocks/observed-resources/standard/steps/1" },
{ "example": "examples/accounts/import.yaml" }
]
api_path: apis/accounts
error_on_missing_schemas: true
test:
uses: unbounded-tech/workflows-crossplane/.github/workflows/test.yaml@v2.20.0
e2e:
uses: unbounded-tech/workflows-crossplane/.github/workflows/e2e.yaml@v2.20.0
uses: unbounded-tech/workflows-crossplane/.github/workflows/e2e.yaml@v2.20.0
uses: unbounded-tech/workflows-crossplane/.github/workflows/e2e.yaml@v2.20.0
with:
aws: true
aws-use-oidc: true
aws-account-id: "034489662075"
aws-region: us-east-2
write-env-files: true
env-vars: |
{
"TEST_OU_EXTERNAL_NAME": "${{ vars.TEST_OU_EXTERNAL_NAME }}",
"TEST_ACCOUNT_EXTERNAL_NAME": "${{ vars.TEST_ACCOUNT_EXTERNAL_NAME }}",
"TEST_ACCOUNT_NAME": "${{ vars.TEST_ACCOUNT_NAME }}",
"TEST_ACCOUNT_EMAIL": "${{ vars.TEST_ACCOUNT_EMAIL }}"
}
publish:
needs:
- validate
- test
uses: unbounded-tech/workflows-crossplane/.github/workflows/publish.yaml@v2.20.0
secrets: inherit
with:
tag: pr-${{ github.event.pull_request.number }}-${{ github.sha }}