以下の内容はhttps://ryuichi1208.hateblo.jp/entry/2021/12/13/215039より取得しました。


【GitHub Actions】入力で型とか指定できるようになった

qiita.com

この記事は「GitHub Actions Advent Calendar」の記事です。

めっちゃ便利なやつ。文字列だけしか指定できなかったのですがchoiceやbooleanを指定できるようになりました。文字列チェックをシェルスクリプトとかで実装が不要になってめっちゃ便利ですね。

github.blog

上の記事あるサンプルを入れるとこんな感じで使えました。パラメータを動的に入れるみたいなことはGHAだけでは現状できなそう更なる進化に期待ですね。

f:id:ryuichi1208:20211113214931p:plain

name: Mixed inputs

on:
  workflow_dispatch:
    inputs:
      name:
        type: choice
        description: Who to greet
        options: 
        - monalisa
        - cschleiden
      message:
        required: true
      use-emoji:
        type: boolean
        description: Include 🎉🤣 emojis
      environment:
        type: environment

jobs:
  greet:
    runs-on: ubuntu-latest

    steps:
    - name: Send greeting
      run: echo "${{ github.event.inputs.message }} ${{ fromJSON('["", "🥳"]')[github.event.inputs.use-emoji == 'true'] }} ${{ github.event.inputs.name }}"



以上の内容はhttps://ryuichi1208.hateblo.jp/entry/2021/12/13/215039より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14