Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 564 Bytes

set-environment-for-all-steps.md

File metadata and controls

17 lines (13 loc) · 564 Bytes

Set environment variables for all steps in a GitHub Action

From this example I learned that you can set environment variables such that they will be available in ALL jobs once at the top of a workflow:

name: Build and Deploy to Cloud Run

on:
  push:
    branches:
    - master

env:
  PROJECT_ID: ${{ secrets.RUN_PROJECT }}
  RUN_REGION: us-central1
  SERVICE_NAME: helloworld-nodejs