-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example github workflow passing data between steps
- Loading branch information
1 parent
5ce4724
commit 40d80e4
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
aaa: | ||
name: A test workflow | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set test output | ||
run: echo "::set-output name=test::test output" | ||
id: test | ||
- name: Get DEV YAML image tag | ||
run: echo "YAML_IMAGE_TAG=dupa" >> $GITHUB_ENV | ||
- name: Set YAML image tag | ||
run: echo "::set-output name=tag::$YAML_IMAGE_TAG" | ||
id: yaml_image_tag | ||
- name: Test env | ||
run: echo ${{ env.YAML_IMAGE_TAG }} | ||
- name: Test env2 | ||
run: echo $YAML_IMAGE_TAG | ||
- name: Echo test output | ||
run: echo ${{ steps.test.outputs.test}} | ||
- name: Echo yaml image tag | ||
run: echo ${{ steps.yaml_image_tag.outputs.tag}} | ||
- name: Test is dupa | ||
run: echo "is dupa" | ||
if: | ||
${{ steps.yaml_image_tag.outputs.tag == 'dupa' }} | ||
- name: Test is nothing | ||
run: echo "is nothing" | ||
if: | ||
${{ steps.yaml_image_tag.outputs.tag == '' }} |