Unrecognized named-value: 'secrets'. Located at position 1 within expression:
ianrussel opened this issue · 0 comments
ianrussel commented
Hi, I tried this as action but it doesnt work
action.yml
name: Create envfile
on: [ push ]
jobs:
create-envfile:
runs-on: ubuntu-latest
steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1.3
with:
envkey_DEBUG: false
envkey_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
directory: thedirectory/
file_name: .env
fail_on_empty: false
workflow.yml
name: Build and deploy Python app
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get Environment Variables
uses: ./.github/actions/create_envfile // it fails here
Error
Error: /home/runner/work/thedirectory/thedirectory/./.github/actions/create_envfile/action.yml (Line: 16, Col: 27):
Error: /home/runner/work/thedirectory/thedirectory/./.github/actions/create_envfile/action.yml (Line: 16, Col: 27): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CLIENT_SECRET
Any ideas?