name: test-workflow on: push: branches: [test] #どういう時にこのアクションをキックするかを定義する workflow_dispatch: #これをつけると、アクションを手動実行できる。 jobs: main: runs-on: ubuntu-latest #ワークフローを実行させる環境を指定 steps: - uses: actions/checkout@v2 #Githubやサードパーティの公開アクションを利用できる - name: test id: test run: | #"|"をつけると複数行のコマンドを設定できる hoge=`コマンド等` echo "::set-output name=result::$(echo $hoge)" #set-outputを使うと値をセットできる。参照する時は${{ steps.test.outputs.result }}を使うと良い。