Ensuring we run workflow steps if the event is a repository_dispatch event
MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Comment PR
- uses: thollander/actions-comment-pull-request@v1.0.1
+ uses: thollander/actions-comment-pull-request@1.0.1
with:
message: |
PR is now waiting for a maintainer to run the acceptance tests.

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -59,7 +59,7 @@ jobs:
node-version: [14.x]
python-version: [3.7]
dotnet-version: [3.1.x]
- if: github.event.pull_request.head.repo.full_name == github.repository
+ if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}
@@ -138,7 +138,7 @@ jobs:
node-version: [14.x]
python-version: [3.7]
dotnet-version: [3.1.x]
- if: github.event.pull_request.head.repo.full_name == github.repository
+ if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}
@@ -278,7 +278,7 @@ jobs:
node-version: [14.x]
python-version: [3.7]
dotnet-version: [3.1.x]
- if: github.event.pull_request.head.repo.full_name == github.repository
+ if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}

Ensuring we run workflow steps if the event is a repository_dispatch event