assign .env files values into $GITHUB_ENV
MIT License
read the content of .env files into the GitHub Actions Context
GitHub Actions already contains plenty of context for use within Actions workflows.
However, it's very limited, and does not include the entirety of the repository metadata.
input | required | default | description |
---|---|---|---|
file |
❌ | .env |
path to .env file |
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: metadata
uses: ahmadnassri/action-dotenv@v1
- run: echo ${{ env.foo }} ${{ env.bar }}
Author: Ahmad Nassri • Twitter: @AhmadNassri