Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor12321 authored Nov 10, 2023
1 parent 4c03a17 commit d5b1dea
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
SELECTED_COLOR: ${{ steps.color-selector.outputs.SELECTED_COLOR }}

steps:
- name: Set color
id: color-selector
run: echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
- name: Get color
env:
SELECTED_COLOR: ${{ steps.color-selector.outputs.SELECTED_COLOR }}
run: echo "The selected color is $SELECTED_COLOR"

build2:
needs: build
runs-on: ubuntu-latest

steps:
- name: survived first job
id: second_job
env:
lastjob_output: ${{ needs.build.outputs.SELECTED_COLOR }}
run: echo "The selected color from previous job is $lastjob_output"
echo "$lastjob_output survived first job!"

- name: Set color
run: echo "$PATH"


0 comments on commit d5b1dea

Please sign in to comment.