Skip to content

Instantly share code, notes, and snippets.

@weibeld
Created August 1, 2020 11:56
Show Gist options
  • Save weibeld/dcd8bec312110763764e87cffc58c8ed to your computer and use it in GitHub Desktop.
Save weibeld/dcd8bec312110763764e87cffc58c8ed to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Env Vars
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