Skip to content

Commit

Permalink
use event_name (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman authored Jun 8, 2020
1 parent 409e52f commit 63d4162
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
# Checkout the code from GitHub the default way
- name: "Checkout code (default)"
uses: actions/checkout@v2
if: github.event.event_type != 'repository_dispatch'
if: ${{ github.event_name != 'repository_dispatch' }}

# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v2
if: github.event.event_type == 'repository_dispatch'
if: ${{ github.event_name == 'repository_dispatch' }}
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand All @@ -52,12 +52,12 @@ jobs:
# Checkout the code from GitHub the default way
- name: "Checkout code (default)"
uses: actions/checkout@v2
if: github.event.event_type != 'repository_dispatch'
if: ${{ github.event_name != 'repository_dispatch' }}

# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v2
if: github.event.event_type == 'repository_dispatch'
if: ${{ github.event_name == 'repository_dispatch' }}
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -88,12 +88,12 @@ jobs:
# Checkout the code from GitHub the default way
- name: "Checkout code (default)"
uses: actions/checkout@v2
if: github.event.event_type != 'repository_dispatch'
if: ${{ github.event_name != 'repository_dispatch' }}

# Checkout the code from GitHub Pull Request
- name: "Checkout code for ChatOps"
uses: actions/checkout@v2
if: github.event.event_type == 'repository_dispatch'
if: ${{ github.event_name == 'repository_dispatch' }}
with:
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down

0 comments on commit 63d4162

Please sign in to comment.