From bec158b63bc3b2cd6f7b2997214829e5fe38da61 Mon Sep 17 00:00:00 2001 From: Emil Kais Date: Tue, 7 Jan 2025 13:34:37 -0300 Subject: [PATCH 1/4] Try fixing checkout step --- .github/workflows/release-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index f683bd470c5bf..556d835967f74 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -1,7 +1,9 @@ name: 'Build and Publish Docker Image' on: - push: + pull_request: + types: + - closed branches: - master pull_request: @@ -27,7 +29,7 @@ jobs: - name: Checkout uses: actions/checkout@v4.1.1 with: - fetch-depth: 0 + ref: ${{ github.head_ref || github.ref }} - run: corepack enable - uses: actions/setup-node@v4.0.2 with: From e5ea90e7c9437b541b2e8ac79dcc81a41200c7c1 Mon Sep 17 00:00:00 2001 From: Emil Kais Date: Tue, 7 Jan 2025 13:41:24 -0300 Subject: [PATCH 2/4] check branch for publish --- .github/workflows/release-publish.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 556d835967f74..6e7ab5f23ba63 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -1,11 +1,6 @@ name: 'Build and Publish Docker Image' on: - pull_request: - types: - - closed - branches: - - master pull_request: branches: - master @@ -29,7 +24,9 @@ jobs: - name: Checkout uses: actions/checkout@v4.1.1 with: - ref: ${{ github.head_ref || github.ref }} + fetch-depth: 0 + - name: Debug Publish Branch + run: echo "Publishing to branch: ${{ github.event.pull_request.base.ref }}" - run: corepack enable - uses: actions/setup-node@v4.0.2 with: From 972a38a8f558bf9cdf6669fcb34018bbff165902 Mon Sep 17 00:00:00 2001 From: Emil Kais Date: Tue, 7 Jan 2025 13:42:56 -0300 Subject: [PATCH 3/4] temp change to fix/* branch to test --- .github/workflows/release-publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 6e7ab5f23ba63..92f0602642169 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -3,9 +3,7 @@ name: 'Build and Publish Docker Image' on: pull_request: branches: - - master - types: - - closed + - fix/* jobs: publish-to-npm: From 0228e345e90409872f11a9715f313516ae06a2ae Mon Sep 17 00:00:00 2001 From: Emil Kais Date: Tue, 7 Jan 2025 13:52:48 -0300 Subject: [PATCH 4/4] change on pr to on push --- .github/workflows/release-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 92f0602642169..58fd97fa724f0 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -1,7 +1,7 @@ name: 'Build and Publish Docker Image' on: - pull_request: + push: branches: - fix/*