Синхронизация конфигурации #385
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 SSLWE | |
copy description.json SSLWE | |
- 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 |