# https://github.com/marketplace/actions/run-circle-ci-on-label
name: valgrind-general-run

on:
  pull_request:
    types:
      - labeled
      - synchronize
      - assigned

jobs:
  valgrind_general:
    if: github.event.label.name == 'ci-test'
    runs-on: ubuntu-latest
    name: Run valgrind general

    steps:
      - uses: actions/checkout@v2
      - name: circle-ci job runner
        id: curl-circle-ci
        uses: Open-Source-Contrib/circle-ci-trigger-action@latest
        with:
          circle_ci_token: ${{ secrets.CIRCLE_CI_SECRET}}
          circle_ci_job: valgrind-general
          circle_ci_project_url: ${{ github.event.pull_request.head.ref }}
