From 73848e0e63f244e48fa5228816c30d957f81372c Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 22:56:35 +0200 Subject: [PATCH] upload only if on master --- .gitea/workflows/books.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/books.yml b/.gitea/workflows/books.yml index 8046016..0fd72ed 100644 --- a/.gitea/workflows/books.yml +++ b/.gitea/workflows/books.yml @@ -26,6 +26,7 @@ jobs: - run: poetry install --without dev - run: poetry run python books.py - run: bash -x upload.sh + if: ${{ gitea.ref == 'refs/heads/master' }} env: USERNAME: ${{ secrets.USERNAME }} PASSWORD: ${{ secrets.PASSWORD }}