Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add environment variables using action inputs

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

@danton267 is already working on this.

Since Jun 3, 2024.

  • #21 by @danton267 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
bash, github-actions
Domain
ci-cd, devops

Research direction

Start by reviewing the reusable GitHub Action workflow and the proposed environment-variable step in the issue, then inspect linked pull request #21. Confirm how action inputs, variables, and secrets are currently exposed before implementing the deployment update. Done means configured environment variables are applied during deployment without breaking the existing action flow.

Written by the indexing model from the issue text.

Description

enhancement

In some cases, an environment variable is necessary for the app to deploy/run correctly (e.g DB credentials).
I suggest adding a separate step right after creating the app that might look like this.
The condition for when to run this step can also depend on whether any ENV_VARIABLEs have been configured

- name: Set up DE application environment
        shell: bash
        if: github.event.action != 'closed'
        run: |
          IFS = $VAR_SEPERATOR
          for env in $(read -ra env <<< $ENV_VARIABLES) ; do
          de --no-keyfile apps update --name  ${{ env.APP_NAME }} --add-environment-variable $env
          done
        env:
          DASH_ENTERPRISE_HOST: ${{ vars.DASH_ENTERPRISE_URL }}
          DASH_ENTERPRISE_USERNAME: ${{ vars.DASH_ENTERPRISE_USERNAME }}
          DASH_ENTERPRISE_PASSWORD: ${{ secrets.DASH_ENTERPRISE_PASSWORD }}
          APP_NAME: ${{ vars.APP_NAME }}
          ENV_VARIABLES: ${{ secrets.ENV_VARIABLES }}
          VAR_SEPERATOR: ${{ vars.VAR_SEPERATOR }}
Dominant language
No language data
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/de-deploy

All issues in plotly/de-deploy

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.