From 77dc3caaf7a685b60bbb7e4ebf376d51b6aacb37 Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Wed, 7 Aug 2024 10:53:14 +0100 Subject: [PATCH] prevent setup workflow from running immediately on repo creation --- .github/workflows/setup.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 0dcdcb3..5bd5401 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -9,7 +9,8 @@ name: Initial project setup jobs: setup: - if: ${{ !contains (github.repository, '/thallium-microservice-template') }} + # Don't run just after creating repo from template + if: ( github.run_number != 1 ) && ${{ !contains (github.repository, '/thallium-microservice-template') }} name: Initial project setup runs-on: ubuntu-latest steps: