Skip to content

sanitize yaml

sanitize yaml #4

Workflow file for this run

name: Deploy website
on:
push:
branches:
- using-secrets
env:
DB_NAME: "my-db"
jobs:
test-env-vars:
environment: test
runs-on: ubuntu-latest
steps:
- name: test environment variables
run: |
echo "ENV var from yaml env conf - 1" - $DB_NAME
echo "ENV var from yaml env conf - 2" - ${{env.DB_NAME}}
echo "ENV var from github environment settings" - ${{env.ENV_DB_NAME}}
test-env-secrets:
environment: test
runs-on: ubuntu-latest
steps:
- name: test secrets
run: echo "ENV secrets from github environment settings" - {{secrets.MY_SECRET}}