diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml index f9e8c39..3c8e99d 100644 --- a/.github/workflows/secrets.yml +++ b/.github/workflows/secrets.yml @@ -3,6 +3,7 @@ on: push: branches: - using-secrets +environment: test env: DB_NAME: "my-db" jobs: @@ -10,9 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - name: test environment variables - run: echo "test ENV var" - $DB_NAME + 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" \ No newline at end of file + run: echo "test env secrets" - {{secrets.MY_SECRET}} \ No newline at end of file