Skip to content

test env secrets + vars #3

test env secrets + vars

test env secrets + vars #3

Workflow file for this run

name: Deploy website
on:
push:
branches:
- using-secrets
environment: test

Check failure on line 6 in .github/workflows/secrets.yml

View workflow run for this annotation

GitHub Actions / Deploy website

Invalid workflow file

The workflow is not valid. .github/workflows/secrets.yml (Line: 6, Col: 1): Unexpected value 'environment'
env:
DB_NAME: "my-db"
jobs:
test-env-vars:
runs-on: ubuntu-latest
steps:
- name: test environment variables
run: |
echo "test ENV var" - $DB_NAME
echo "test ENV var" - ${{env.DB_NAME}}
echo "test ENV var" - ${{env.ENV_DB_NAME}}
test-env-secrets:
runs-on: ubuntu-latest
steps:
- name: test secrets
run: echo "test env secrets" - {{secrets.MY_SECRET}}