github actions secrets
-
환경 변수 설정하기github actions 2022. 3. 1. 23:03
env 를 이용해 global, job, step 단위로 설정할 수 있다. 코드 name: ENV Variables on: push env: WF_ENV: Available to all jobs jobs: log-env: runs-on: ubuntu-latest env: JOB_ENV: Available to all steps in log-env job steps: - name: Log ENV Variables env: STEP_ENV: Available to only this step run: | echo "WF_ENV: ${WF_ENV}" echo "JOB_ENV: ${JOB_ENV}" echo "STEP_ENV: ${STEP_ENV}" log-default-env: runs-on: ubuntu-la..