-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
46 lines (38 loc) · 1.29 KB
/
action.yml
File metadata and controls
46 lines (38 loc) · 1.29 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
42
43
44
45
46
name: 'Run Wopee.bot'
description: 'Run tests by Wopee Bot using docker container'
inputs:
image:
description: 'Full path to Wopee image'
default: 'ghcr.io/autonomous-testing/wopee.bot:dev'
required: false
container_name:
description: 'Name for container within running wopee. It will be stopped first if it is already running.'
default: 'wopee-runner'
required: false
env_file:
description: 'Path to .env file relative to current working directory'
default: ''
required: false
working_directory:
description: 'Path to working directory relative to current working directory'
default: 'wopee-runner'
required: false
runs:
using: "composite"
steps:
- name: Run Wopee.bot using docker
shell: bash
env:
IMAGE: ${{ inputs.image }}
CONTAINER_NAME: ${{ inputs.container_name }}
ENV_FILE: ${{ inputs.env_file }}
WORKING_DIRECTORY: ${{ inputs.working_directory }}
SECCOMP_PROFILE: ${{ github.action_path }}/seccomp_profile.json
run: |
bash ${{ github.action_path }}/wopee.bot.sh \
- name: Fix permissions
shell: bash
if: always()
env:
WORKING_DIRECTORY: ${{ inputs.working_directory }}
run: sudo chown -R $(id -u):$(id -g) $WORKING_DIRECTORY