Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadnassri/action-dotenv
assign .env files values into $GITHUB_ENV
https://github.com/ahmadnassri/action-dotenv
actions dotenv
Last synced: about 2 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T18:21:34.000Z (5 months ago)
- Last Synced: 2024-10-17T08:06:13.673Z (2 months ago)
- Topics: actions, dotenv
- Language: Makefile
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 3
- 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-lateststeps:
- 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