by shigemk2

当面は技術的なことしか書かない

GitHub Actions 環境変数

https://docs.github.com/ja/actions/learn-github-actions/environment-variables

予約語あり。続けて書ける。

name: Greeting on variable day

on:
  workflow_dispatch

env:
  DAY_OF_WEEK: Monday

jobs:
  greeting_job:
    runs-on: ubuntu-latest
    env:
      Greeting: Hello
    steps:
      - name: "Say Hello Mona it's Monday"
        run: echo "$Greeting $First_Name. Today is $DAY_OF_WEEK!"
        env:
          First_Name: Mona
          Second_Name: Moni