weblog

技術的なメモ置き場。

GitHub Actionsを手動実行する

workflow_dispatchでGitHub Actionsが手動実行できるようになったので試す。

github.blog

.github/workflows/hoge.yml とか適当に作る。

name: Manually triggered workflow
on: workflow_dispatch
    
jobs:
  hello:
    runs-on: ubuntu-latest
    steps:
    - run: |
        echo "Hello World!"

workflowを追加するとGitHubのActionsで追加したworkflow名が表示される。

f:id:kentama7:20200714211206p:plain

右上のRun workflowで実行する

f:id:kentama7:20200714211403p:plain

実行された

f:id:kentama7:20200714211619p:plain