Skip to content

Commit

Permalink
XLabs/portal-bridge-ui-issues#11 - fix build commit reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Dec 5, 2023
1 parent d8bd176 commit 7c507be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Portal Bridge [Preview]

on: pull_request
# workflow_run:
# workflows: ["Code Standard Checks"]
# types:
# - completed

jobs:
branch-sha:
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Portal Bridge [Testnet]

on: pull_request
# workflow_run:
# workflows: ["Code Standard Checks"]
# types:
# - completed

jobs:
branch-sha:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7c507be

Please sign in to comment.