From 4f66a19d30d900dba1d5903e5d9e4273d2a9751a Mon Sep 17 00:00:00 2001 From: Jeffrey van den Hondel Date: Wed, 14 Dec 2022 15:53:00 +0100 Subject: [PATCH 1/3] [add-git-action] chore: add github action to pipe-dotenv --- .github/actions/dotenv/action.yaml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/actions/dotenv/action.yaml diff --git a/.github/actions/dotenv/action.yaml b/.github/actions/dotenv/action.yaml new file mode 100644 index 0000000..2e4d2a3 --- /dev/null +++ b/.github/actions/dotenv/action.yaml @@ -0,0 +1,34 @@ +name: 'Programic DotEnv' +description: 'Returns a .env file based on the given environment' +inputs: + project-name: + description: 'Project name' + required: true + environment: + description: 'Environment name' + required: true + url: + description: 'DotEnv api url' + required: true + token: + description: 'DotEnv api token' + required: true + source: + description: 'DotEnv api source' + default: './src/.env.example' + target: + description: 'DotEnv api target' + default: './src/.env' +outputs: + envFile: + description: '.env file based on the given environment' +runs: + using: 'docker' + image: 'docker://programic/pipe-dotenv:latest' + env: + DOTENV_PROJECT: "${{ inputs.project-name }}" + DOTENV_ENVIRONMENT: "${{ inputs.environment }}" + DOTENV_API_URL: "${{ inputs.url }}" + DOTENV_API_TOKEN: "${{ inputs.token }}" + DOTENV_FILE_SOURCE: "${{ inputs.source }}" + DOTENV_FILE_TARGET: "${{ inputs.target }}" From a3b1ad3e375ffc075980530a4f93cdfdcd2fd00e Mon Sep 17 00:00:00 2001 From: Jeffrey van den Hondel Date: Thu, 15 Dec 2022 11:53:55 +0100 Subject: [PATCH 2/3] [add-git-action] chore: rename folder --- .github/actions/{dotenv => pipe-dotenv}/action.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/actions/{dotenv => pipe-dotenv}/action.yaml (100%) diff --git a/.github/actions/dotenv/action.yaml b/.github/actions/pipe-dotenv/action.yaml similarity index 100% rename from .github/actions/dotenv/action.yaml rename to .github/actions/pipe-dotenv/action.yaml From 9c62a0b38cf614b0661389285ccaac1863c7d57a Mon Sep 17 00:00:00 2001 From: Jeffrey van den Hondel Date: Thu, 15 Dec 2022 12:00:03 +0100 Subject: [PATCH 3/3] [add-git-action] chore: fix issue? --- .github/actions/pipe-dotenv/action.yaml => action.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/actions/pipe-dotenv/action.yaml => action.yaml (100%) diff --git a/.github/actions/pipe-dotenv/action.yaml b/action.yaml similarity index 100% rename from .github/actions/pipe-dotenv/action.yaml rename to action.yaml