0
0

.gitea/workflows/copy.yaml aktualisiert
All checks were successful
copy-homer / prod-build (push) Successful in 14s

This commit is contained in:
Denys Konovalov 2023-10-21 21:51:06 +02:00
parent 4562f98624
commit aef7213228

@ -1,29 +1,24 @@
name: copy-homer name: copy-homer
on: on:
push: push:
branches: branches:
- main - main
concurrency: jobs:
group: ${{ gitea.workflow }}-${{ gitea.ref }} prod-build:
cancel-in-progress: true if: gitea.repository == 'gcg/homer-data'
runs-on: act-runner-user
jobs: timeout-minutes: 5
prod-build: steps:
if: gitea.repository == 'gcg/homer-data' && gitea.event_name == 'push' - name: clone
runs-on: act-runner-user uses: https://github.com/actions/checkout@v4
timeout-minutes: 5 - name: deploy
steps: run: |
- name: clone rsync -azr --delete ./ /opt/data/homer/
uses: actions/checkout@v3 - name: notification
- name: deploy uses: actions/telegram-action@main
run: | if: always()
rsync -azr --delete ./ /opt/data/homer/ with:
- name: notification chat_id: ${{ secrets.TG_CHAT_ID }}
uses: actions/telegram-action@main token: ${{ secrets.TG_TOKEN }}
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}
include_commit_info: false