Workflow_dispatch action cannot be run manually

I created a workflow with the workflow_dispatch event. I have a Firebase Function, which is supposed to trigger it, and the function worked fine. But no event was created in Github Actions. I then tried to run it manually via the Github Actions tab. It said the run was successfully requested, but no event was created.

Here is my workflow file. Can you tell me what I’m doing wrong?


# Controls when the action will run. 
on: workflow_dispatch

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
  # This workflow contains a single job called "build"
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
      - name: Checkout Repo
        uses: actions/checkout@master

      - name: Rebuild Heroku PROD
        uses: akhileshns/heroku-deploy@v3.12.12
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          heroku_app_name: "mattdekok-dev"
          heroku_email: ${{ secrets.MY_EMAIL }}
          justlogin: true
        run: heroku builds:create --version "Updated blog posts" -a mattdekok-dev

I figured it out. Apparently my yml was formatted correctly according to VS Code, but uses and run cannot be used on the same step.

1 Like