Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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