-
Notifications
You must be signed in to change notification settings - Fork 133
39 lines (31 loc) · 814 Bytes
/
robot.yml
File metadata and controls
39 lines (31 loc) · 814 Bytes
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
name: Robot
on:
push:
branches: [main]
paths:
- .github/workflows/robot.yml
- dev/robot/**
schedule:
# At 02:30 on Monday https://crontab.guru/#30_2_*_*_1
- cron: "30 2 * * 1"
jobs:
install:
runs-on: ubuntu-latest
concurrency: robot
environment: e2e-robot
defaults:
run:
working-directory: dev/robot
env:
PY_COLORS: true
ANSIBLE_FORCE_COLOR: true
steps:
- uses: actions/checkout@v6
- name: Install robot server
env:
ROBOT_USER: ${{ secrets.ROBOT_USER }}
ROBOT_PASSWORD: ${{ secrets.ROBOT_PASSWORD }}
ROBOT_SSH_KEY: ${{ secrets.ROBOT_SSH_KEY }}
run: |
ansible-galaxy install -r requirements.yml
./with-ssh-agent ansible-playbook -vv install.yml