-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
36 lines (36 loc) · 1.06 KB
/
action.yaml
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
name: 'GitHub Repository Dispatch'
description: 'Create a repository dispatch event'
inputs:
token:
description: 'GitHub Apps Token'
required: true
repository:
description: 'The repository to send the dispatch event to'
default: ${{ github.repository }}
event-type:
description: 'A custom webhook event name.'
required: true
client-payload:
description: 'JSON payload with extra information about the webhook event that your action or worklow may use.'
default: '{}'
runs:
using: 'composite'
steps:
- name: Set GitHub Path
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.0
cache: false
- name: Repository Dispatch
run: entrypoint.sh
shell: bash
env:
TOKEN: ${{ inputs.token }}
REPOSITORY: ${{ inputs.repository }}
EVENT_TYPE: ${{ inputs.event-type }}
CLIENT_PAYLOAD: ${{ inputs.client-payload }}