-
Notifications
You must be signed in to change notification settings - Fork 304
41 lines (36 loc) · 1.04 KB
/
action-dispatch.yml
File metadata and controls
41 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: action-dispatch
on:
workflow_dispatch:
# push:
# branches:
# - '*'
# pull_request:
# branches:
# - '*'
run-name: ${{ github.actor }} is testing out Actions 🚀
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Generate token from GitHub App
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ERGO-Code
repositories: tests
- name: Trigger the automated test in another repo
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ steps.generate-token.outputs.token }}
repository: ERGO-Code/tests
event-type: highs-mip-tests
client-payload: |
{
"repository": "${{ github.repository }}",
"ref": "${{ github.ref }}",
"sha": "${{ github.sha }}"
}
- name: my-step
run: echo "${{ github.actor }} Hello automations!"