코딩과로그

[TIL] Github actions 내 Context 출력하기 본문

기타1/깃헙 액션

[TIL] Github actions 내 Context 출력하기

피리음 2023. 5. 1. 03:46

📌 Github actions 내 Context 출력하기

Github Actions 내의 context를 아래와 같이 작성하면 github context를 출력할 수 있다.

Context 관련 Github 공식사이트 주소

github actions workflow를 아래와 같이 작성한다.
코드 링크

name: Output information
on: workflow_dispatch
jobs:
  info:
    runs-on: ubuntu-latest
    steps:
      - name: Output GitHub context
        run: echo "${{ toJSON(github) }}"

출력 결과

출력 결과 링크