Last active
August 2, 2020 12:24
-
-
Save weibeld/4ab2594adf9db14b5a250224cd8ac122 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow — Outputs 4
This file contains hidden or 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: 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