2023-12-07 20:47:12 +01:00
|
|
|
name: deploy-homer
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: /opt/data/homer
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
prod-build:
|
|
|
|
if: gitea.repository == 'gcg/homer-data'
|
|
|
|
runs-on: act-runner-user
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
|
|
- name: pull
|
|
|
|
run: |
|
|
|
|
git pull
|
|
|
|
- name: notification
|
|
|
|
uses: actions/telegram-action@main
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
2023-10-21 21:51:06 +02:00
|
|
|
token: ${{ secrets.TG_TOKEN }}
|