-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
52 lines (44 loc) · 1.45 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
name: 'Competition Record'
description: 'Build and publish Webots animation and save competition score'
inputs:
participant_repo_id:
description: 'The ID of the participant repository'
required: true
participant_repo_name:
description: 'The name of the participant repository'
required: true
participant_repo_private:
description: 'Whether the participant repository is private'
required: true
opponent_repo_name:
description: 'The name of the opponent repository selected by the participant'
required: false
log_url:
description: 'The URL of GitHub action logs'
required: true
repo_token:
description: 'The GitHub token'
required: true
upload_performance:
description: 'Whether to upload the performance to the cloud'
required: false
default: 'false'
branding:
icon: 'play'
color: 'red'
runs:
using: 'composite'
steps:
- name: Run the python meta script
run: |
cp -r ${{ github.action_path }}/metascript .
python3 -u -m metascript
shell: bash
env:
PARTICIPANT_REPO_ID: ${{ inputs.participant_repo_id }}
PARTICIPANT_REPO_NAME: ${{ inputs.participant_repo_name }}
PARTICIPANT_REPO_PRIVATE: ${{ inputs.participant_repo_private }}
OPPONENT_REPO_NAME: ${{ inputs.opponent_repo_name }}
LOG_URL: ${{ inputs.log_url }}
REPO_TOKEN: ${{ inputs.repo_token }}
UPLOAD_PERFORMANCE: ${{ inputs.upload_performance }}