workflow-dispatch icon indicating copy to clipboard operation
workflow-dispatch copied to clipboard

Sequential action calls do not wait for completion

Open bakoontz2 opened this issue 2 years ago • 0 comments

Per the documentation:

This allows you to chain workflows, the classic use case is have a CI build workflow, trigger a CD release/deploy workflow when it completes. Allowing you to maintain separate workflows for CI and CD, and pass data between them as required.

However, an invocation does not appear to wait until the next invocation is triggered. So it's not clear how this is supposed to work. For instance:

name: Test

on:
  workflow_dispatch

jobs:
  build_deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Build common
        uses: benc-uk/workflow-dispatch@v1
        with:
          workflow: "Build and deploy common"
          token: ${{ secrets.PAT }}
          repo: name/repo
          ref: master

      - name: Build search
        uses: benc-uk/workflow-dispatch@v1
        with:
          workflow: "Build search"
          token: ${{ secrets.PAT }}
          repo: name/repo
          ref: master

      - name: Deploy search
        uses: benc-uk/workflow-dispatch@v1
        with:
          workflow: "Deploy search"
          token: ${{ secrets.PAT }}
          repo: name/repo
          ref: master

All three steps are executed. There is no "waiting" between steps. Did I miss something?

bakoontz2 avatar Aug 23 '22 22:08 bakoontz2