티스토리 뷰

공부

[github] `$GITHUB_OUTPUT`

승가비 2023. 8. 26. 15:56
728x90
echo "{name}={value}" >> "$GITHUB_OUTPUT"
      - id: random-color-generator
        run: echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
      - run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"

https://docs.github.com/ko/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter

 

GitHub Actions에 대한 워크플로 명령 - GitHub Docs

작업은 실행기 컴퓨터와 통신하여 환경 변수를 설정하고, 다른 작업에서 사용하는 값을 출력하고, 출력 로그에 디버그 메시지를 추가하는 등 다양한 작업을 수행할 수 있습니다. 대부분의 워크

docs.github.com

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

 

GitHub Actions: Deprecating save-state and set-output commands

GitHub Actions: Deprecating save-state and set-output commands

github.blog

https://github.com/actions/setup-python

 

GitHub - actions/setup-python: Set up your GitHub Actions workflow with a specific version of Python

Set up your GitHub Actions workflow with a specific version of Python - GitHub - actions/setup-python: Set up your GitHub Actions workflow with a specific version of Python

github.com

 

728x90
댓글