Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Variables #3

Closed
andresmafra opened this issue Aug 30, 2021 · 3 comments
Closed

Environment Variables #3

andresmafra opened this issue Aug 30, 2021 · 3 comments

Comments

@andresmafra
Copy link

Hi, first of all thanks for the excellent work.

Is it possible to pass out environment variables to this action?

@edno
Copy link

edno commented Oct 19, 2021

@andresmafra - I would say the same way as you do it locally, using the flags action option:

steps:
  - name: Run k6 local test
    uses: k6io/action@v0.2.0
    with:
      filename: my-script-file.js
      flags: --env MY_VAR=42

@tyler-mastery
Copy link
Contributor

tyler-mastery commented Dec 2, 2021

@andresmafra you can also just scope it to the github action step

steps:
  - name: Run k6 local test
    uses: k6io/action@v0.2.0
    with:
      filename: my-script-file.js
    env:
      MY_VAR: 42

@andresmafra
Copy link
Author

Wow! Awesome guys, thanks for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants