From 071eae75b7a201f478aea2e4ad047e38b7d32fe6 Mon Sep 17 00:00:00 2001 From: retoor Date: Mon, 2 Dec 2024 22:26:17 +0100 Subject: [PATCH] Update build files. --- .gitea/workflows/build.yaml | 23 +++++++++++++++++++++++ .gitea/workflows/export.yaml | 7 +++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..b3bca1c --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,23 @@ +name: dR export statistics build +run-name: dR export statistics build +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + - run: echo "Install dependencies." + - run: apt update + - run: apt install python3 python3-pip python3-venv make -y + - run: make + - run: echo "This job's status is ${{ job.status }}." + - run: git add . + - run: git config --global user.email "bot@molodetz.com" + - run: git config --global user.name "bot" + - run: git commit -a -m "Update export statistics" + - run: git push diff --git a/.gitea/workflows/export.yaml b/.gitea/workflows/export.yaml index 69f10da..84ea353 100644 --- a/.gitea/workflows/export.yaml +++ b/.gitea/workflows/export.yaml @@ -1,12 +1,11 @@ -name: dR export statistics -run-name: dR export statistics +name: dR export statistics scheduled +run-name: dR export statistics scheduled on: - [push] schedule: - cron: '*/30 * * * *' jobs: - Compile: + Export: runs-on: ubuntu-latest steps: - name: Check out repository code