Step 간 값 전달
Step 이 같은 job 의 나중 step 이 읽을 수 있는 output 게시. Output 은 $GITHUB_OUTPUT 에; 나중 step 은 steps.<id>.outputs.<name> 로 참조.
쓰기
key=value 줄을 $GITHUB_OUTPUT 에:
echo "sha=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT여러 줄 값은 heredoc-style delimiter:
{
echo 'changelog<<EOF'
cat CHANGELOG.md
echo 'EOF'
} >> $GITHUB_OUTPUT읽기
Step id + output 이름으로 참조. 예: steps.meta.outputs.sha.
다른 job 의 step 끼리는 직접 output 못 읽음. 그건 job output (다음 lesson) 사용.