Created
August 1, 2020 11:56
-
-
Save weibeld/dcd8bec312110763764e87cffc58c8ed to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Env Vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: env-vars | |
on: workflow_dispatch | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: step-1 | |
run: echo "::set-env name=IP_ADDRESS::$(curl -s ifconfig.me)" | |
- name: step-2 | |
run: echo "$IP_ADDRESS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment