From 7c507bee169db3041bf503769e9c94b2a7cc06e8 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 5 Dec 2023 19:19:51 -0300 Subject: [PATCH] xlabs/portal-bridge-ui-issues#11 - fix build commit reference --- .github/workflows/preview.yml | 8 ++------ .github/workflows/testnet.yml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1acccdbf8..e07618d7b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,10 +1,6 @@ name: Portal Bridge [Preview] on: pull_request - # workflow_run: - # workflows: ["Code Standard Checks"] - # types: - # - completed jobs: branch-sha: @@ -17,7 +13,7 @@ jobs: steps: - name: Set Version id: set-version - run: echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.workflow_run.head_branch }} | sha256sum | cut -c -10)" >> "${GITHUB_OUTPUT}" + run: echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_OUTPUT}" build: name: "Build Preview" uses: ./.github/workflows/build.yml @@ -28,7 +24,7 @@ jobs: advanced-tools-branch: advanced-tools environment: Cloudflare-Preview public-url: "/${{ needs.branch-sha.outputs.value }}" - project-branch: ${{ github.event.workflow_run.head_branch }} + project-branch: ${{ github.event.pull_request.head.ref }} secrets: inherit needs: - branch-sha diff --git a/.github/workflows/testnet.yml b/.github/workflows/testnet.yml index aa0b97f78..ec3c689ca 100644 --- a/.github/workflows/testnet.yml +++ b/.github/workflows/testnet.yml @@ -1,10 +1,6 @@ name: Portal Bridge [Testnet] on: pull_request - # workflow_run: - # workflows: ["Code Standard Checks"] - # types: - # - completed jobs: branch-sha: @@ -17,7 +13,7 @@ jobs: steps: - name: Set Version id: set-version - run: echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.workflow_run.head_branch }} | sha256sum | cut -c -10)" >> "${GITHUB_OUTPUT}" + run: echo "_BRANCH_NAME_SHA=$(echo ${{ github.event.pull_request.head.ref }} | sha256sum | cut -c -10)" >> "${GITHUB_OUTPUT}" build: name: "Build Testnet" uses: ./.github/workflows/build.yml @@ -28,7 +24,7 @@ jobs: advanced-tools-branch: advanced-tools environment: Cloudflare-Testnet public-url: "/${{ needs.branch-sha.outputs.value }}" - project-branch: ${{ github.event.workflow_run.head_branch }} + project-branch: ${{ github.event.pull_request.head.ref }} secrets: inherit needs: - branch-sha