Skip to content

Explore repo secret. #1

Explore repo secret.

Explore repo secret. #1

name: Exploring environment variables and secrets
on: push
env:
LEVEL: workflow
jobs:
step_level_env_variables:
env:
LEVEL: job
runs-on: ubuntu-latest
steps:
- name: Setup and read env variables on step level
env:
LEVEL: steps
run: echo $LEVEL
- name: Read job level environment variable
run: echo $LEVEL
workflow_level_env_variables:
runs-on: ubuntu-latest
steps:
- name: Read workflow level environment variable
run: echo $LEVEL

Check failure on line 25 in .github/workflows/environment-variables-and-secrets.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/environment-variables-and-secrets.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
read_repo_secret:
runs-on: ubuntu-latest
steps:
- name: Read repo secret
- run: echo ${{ secrets.REPO_SECRET }}