til

today i learned

View on GitHub

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: $
  RUN_REGION: us-central1
  SERVICE_NAME: helloworld-nodejs