.gitea/workflows/prod.yaml aktualisiert
Some checks failed
website-main / test-build (push) Waiting to run
website-main / auto-rebuild (push) Waiting to run
website-main / prod-build (push) Has been cancelled

This commit is contained in:
Denys Konovalov 2023-09-24 13:27:01 +02:00
parent 7ee0273eea
commit 796636ee4e

@ -5,7 +5,7 @@ on:
branches: branches:
- master - master
schedule: schedule:
- cron: '22 13 * * *' - cron: '0 0 * * *'
concurrency: concurrency:
group: ${{ gitea.workflow }}-${{ gitea.ref }} group: ${{ gitea.workflow }}-${{ gitea.ref }}
@ -13,7 +13,7 @@ concurrency:
jobs: jobs:
prod-build: prod-build:
if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'push' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
@ -40,7 +40,7 @@ jobs:
token: ${{ secrets.TG_TOKEN }} token: ${{ secrets.TG_TOKEN }}
include_commit_info: false include_commit_info: false
test-build: test-build:
if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'push' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
@ -59,11 +59,11 @@ jobs:
cd /opt/data/actions/gcg-website-master/test cd /opt/data/actions/gcg-website-master/test
rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/ rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/
auto-rebuild: auto-rebuild:
if: gitea.repository == 'gcg/gcg-website' && gitea.event_name != '' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- name: ${{ gitea.event_name }} - name: pull
run: | run: |
cd /opt/data/actions/gcg-website-master cd /opt/data/actions/gcg-website-master
git fetch --all git fetch --all