Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
name: Env Var List
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/env-var-list.yml'
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Display Environment Variables on Ubuntu
run: printenv | sort
mac:
runs-on: macos-latest
steps:
- name: Display Environment Variables on MacOS
run: printenv | sort
windows:
runs-on: windows-latest
steps:
- name: Display Environment Variables on Windows
run: printenv | sort
shell: bash
# This job can also be implemented using matrix as shown below
# jobs:
# display:
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# runs-on: $
# steps:
# - name: Display Environment Variables
# run: printenv | sort
# shell: bash