Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit fc7a4ff

Browse files
committed
Experiment a bit
1 parent ba2d5c0 commit fc7a4ff

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/repo_dispatch.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Repo Dispatch
2+
on: repository_dispatch
3+
jobs:
4+
detect-deployment:
5+
runs-on: ubuntu-18.04
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Detect deployment
9+
run:
10+
echo $GITHUB_TOKEN;
11+
echo $GITHUB_EVENT_PATH;
12+
cat $GITHUB_EVENT_PATH
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tools/ci/pr_preview.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ def synchronize(host, github_project, remote_name, window):
259259
time.gmtime(time.time() - window)
260260
)
261261

262+
gh_request(
263+
'POST',
264+
'{}/repos/{}/dispatches'.format(host, github_project),
265+
{'event_type': 'foobarbaz'},
266+
'application/vnd.github.everest-preview+json'
267+
)
268+
262269
for pull_request in pull_requests:
263270
logger.info('Processing pull request #%(number)d', pull_request)
264271

0 commit comments

Comments
 (0)