Action to append environment variables to a dotenv file.
This repo is inspired/folked by https://github.com/TickX/var-to-dotenv.
A single variable:
env:
ENV_VAR1: 'value'
ENV_VAR2: 'value2'
jobs:
single:
name: Single
runs-on: ubuntu-latest
steps:
- name: Test name
uses: CallePuzzle/[email protected]
with:
variableName: ENV_VAR1
A many variables:
env:
ENV_VAR1: 'value'
ENV_VAR2: 'value2'
jobs:
single:
name: Single
runs-on: ubuntu-latest
steps:
- name: Test name
uses: CallePuzzle/[email protected]
with:
variableNames: ENV_VAR1,ENV_VAR2
All variables matching regex:
env:
ENV_VAR1: 'value'
ENV_VAR2: 'value2'
jobs:
single:
name: Single
runs-on: ubuntu-latest
steps:
- name: Test name
uses: CallePuzzle/[email protected]
with:
variableNamesByFilter: ^ENV_(VAR.*)