https://github.com/ahmadnassri/action-dotenv
assign .env files values into $GITHUB_ENV
https://github.com/ahmadnassri/action-dotenv
actions dotenv
Last synced: 4 months ago
JSON representation
assign .env files values into $GITHUB_ENV
- Host: GitHub
- URL: https://github.com/ahmadnassri/action-dotenv
- Owner: ahmadnassri
- License: mit
- Created: 2022-09-08T15:27:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T21:45:37.000Z (over 1 year ago)
- Last Synced: 2025-09-10T19:03:08.237Z (9 months ago)
- Topics: actions, dotenv
- Language: Makefile
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# .env parser action
read the content of .env files into the GitHub Actions Context
[![license][license-img]][license-url]
## Why
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.
## Inputs
| input | required | default | description |
|--------|----------|---------|---------------------|
| `file` | ❌ | `.env` | path to `.env` file |
## Usage
``` yaml
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: metadata
uses: ahmadnassri/action-dotenv@v1
- run: echo ${{ env.foo }} ${{ env.bar }}
```
[context]: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions
----
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)
[license-url]: LICENSE
[license-img]: https://badgen.net/github/license/ahmadnassri/action-dotenv