-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
62 lines (59 loc) · 2.17 KB
/
action.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'Repo Dispatch Event Sender'
description: 'A GitHub Action to trigger repository_dispatch events using the GitHub CLI (gh) command.'
author: '7rikazhexde'
branding:
icon: 'send'
color: 'green'
inputs:
# Payload Generation Conditions
# - required: true -> The environment variable must be set.
# - required: false -> The environment variable is optional, but if set, its value will be passed to the payload generation process.
# - If required: false and a value different from the current default is set, that value will be passed to the payload generation process.(*1)
repository_name:
description: 'Repository name'
required: true
default: 'your-repo'
event_type:
description: 'Event name'
required: true
default: 'your-repository_dispatch-type'
ghpages_branch:
description: 'Target branch to fetch testmon data from'
required: false
default: 'gh-pages'
os_list:
description: 'Comma-separated list of OS in brackets'
required: true
default: '[ubuntu-latest,macos-13,windows-latest]'
type: string
version_list:
description: 'Comma-separated list of versions in brackets'
required: true
default: '[3.11,3.12]'
type: string
custom_param:
description: 'An optional custom parameter for additional configuration'
required: false
default: 'default_value'
#default: 'custom_param_test_val' # (*1)
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.13'
- name: Run Python script
# Environment Variable Setting Conditions
# - Variables with required: true in the input must be set.
# - Variables with required: false in the input are optional.(*2)
shell: bash
run: |
python3 ${{ github.action_path }}/repo_dispatch_event_sender/src/dispatch/send_payload.py
env:
REPOSITORY_NAME: ${{ inputs.repository_name }}
EVENT_TYPE: ${{ inputs.event_type }}
GHPAGES_BRANCH: ${{ inputs.ghpages_branch }} # (*2)
OS_LIST: ${{ inputs.os_list }}
VERSION_LIST: ${{ inputs.version_list }}
CUSTOM_PARAM: ${{ inputs.custom_param }} # (*2)