Skip to content

Not triggering workflow #67

@CWSites

Description

@CWSites

Both of my workflows are on master of my repository. I'm not getting any error messages, however the workflow is not being triggered

Workflow that should be the trigger

  verification:
    name: Workflow - Lint, Test & Build
    runs-on: 'ubuntu-latest'

    steps:
      - name: Repository Dispatch
        uses: peter-evans/repository-dispatch@v1
        with:
          token: ${{ github.token }}
          repository: ${{ github.repository }}
          event-type: run-lint-test-build
          client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

Workflow that I am attempting to trigger

name: Lint, Test & Build

on:
  repository_dispatch:
    types: [run-lint-test-build]

jobs:
  verification:
    name: Lint, Test & Build
    runs-on: ubuntu-latest

    steps:
      - name: Checkout source code
        uses: actions/checkout@v2
        with:
          ref: ${{ github.event.client_payload.ref }}
      - run: echo ${{ github.event.client_payload.sha }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions