From 88edd414e1b3da7bfa16b2404d97c2862924fb19 Mon Sep 17 00:00:00 2001 From: ismay Date: Wed, 19 Jun 2024 14:13:49 +0200 Subject: [PATCH] ci: specify branch to deploy production from --- .github/workflows/comment-and-close.yml | 2 +- .github/workflows/deploy-pr.yml | 2 +- .github/workflows/deploy-production.yml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment-and-close.yml b/.github/workflows/comment-and-close.yml index d5acbf2b..4c8f3fe9 100644 --- a/.github/workflows/comment-and-close.yml +++ b/.github/workflows/comment-and-close.yml @@ -5,4 +5,4 @@ on: jobs: comment-and-close: uses: dhis2/workflows-test/.github/workflows/comment-and-close.yml@main - if: !contains(github.event.issues.sender.login , fromJson('["dhis2-bot", "kodiakhq", "dependabot"]')) + if: '!contains(github.event.issues.sender.login , fromJson('["dhis2-bot", "kodiakhq", "dependabot"]'))' diff --git a/.github/workflows/deploy-pr.yml b/.github/workflows/deploy-pr.yml index 46132fcd..52580080 100644 --- a/.github/workflows/deploy-pr.yml +++ b/.github/workflows/deploy-pr.yml @@ -10,5 +10,5 @@ concurrency: jobs: deploy: uses: dhis2/workflows-test/.github/workflows/deploy-pr.yml@main - if: '!github.event.pull_request.repository.fork' + if: '!github.event.pull_request.head.repo.fork' secrets: inherit diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 987a9fec..f784488a 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -13,3 +13,5 @@ jobs: deploy: uses: dhis2/workflows-test/.github/workflows/deploy-production.yml@main secrets: inherit + with: + branch: master