Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active August 2, 2020 12:24
Show Gist options
  • Save weibeld/4ab2594adf9db14b5a250224cd8ac122 to your computer and use it in GitHub Desktop.
Save weibeld/4ab2594adf9db14b5a250224cd8ac122 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Outputs 4
name: outputs-4
on: workflow_dispatch
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- name: step-1
id: xyz
run: echo "::set-output name=ip-address::$(curl -s ifconfig.me)"
- name: step-2
run: |
echo '{
"ip-address": "${{ steps.xyz.outputs.ip-address }}"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment