From 284b9a0df1c5a12058caa7fa1b86ee82e01d584e Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Mon, 23 Oct 2023 13:23:23 -0400 Subject: [PATCH] Only create releases on tag pushes to the official repository. --- .github/workflows/deliver.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deliver.yml b/.github/workflows/deliver.yml index 294d2cf3b..e8c15f877 100644 --- a/.github/workflows/deliver.yml +++ b/.github/workflows/deliver.yml @@ -130,8 +130,10 @@ jobs: - name: Test Drush site install with all modules run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all' release: - name: Create GitHub release - if: github.event_name == 'push' && github.ref_type == 'tag' + name: Create release + # We only create a release if this is a tag push event to the official + # repository. + if: github.repository == 'farmOS/farmOS' && github.event_name == 'push' && github.ref_type == 'tag' runs-on: ubuntu-latest needs: - build