-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (34 loc) · 1.03 KB
/
sync.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
name: Синхронизация конфигурации
on:
schedule:
- cron: 0 12 * * * # каждый день в 12:00
workflow_dispatch:
env:
YARD_RELEASES_USER: ${{ secrets.YARD_RELEASES_USER }}
YARD_RELEASES_PWD: ${{ secrets.YARD_RELEASES_PWD }}
jobs:
build:
runs-on: self-hosted
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Актуализация git
uses: actions/[email protected]
- name: Подготовка окружения
shell: cmd
run: |
chcp 65001
mkdir distr
copy description.json distr
cd distr
mkdir SSL31
copy description.json SSL31
- name: Синхронизация с помощью yard
shell: cmd
run: |
chcp 65001
yard -v process --work-dir ./ ./yardsettings.json
- name: Отправка изменений в github репо
shell: cmd
run: |
chcp 65001
git push --set-upstream origin master