Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(ci): pull in the upstream base repo branch for PRs

Gabe Kangas220f5fbee146
diff --git a/.github/workflows/automated-end-to-end-api.yaml b/.github/workflows/automated-end-to-end-api.yaml
index 71ff2afc99..bd457e9cd7 100644
--- a/.github/workflows/automated-end-to-end-api.yaml
+++ b/.github/workflows/automated-end-to-end-api.yaml
@@ -34,6 +34,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6
diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.yml
index 5ed0da638f..2f89314098 100644
--- a/.github/workflows/browser-testing.yml
+++ b/.github/workflows/browser-testing.yml
@@ -38,6 +38,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6
diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml
index eec4db94f0..c511391517 100644
--- a/.github/workflows/chromatic.yml
+++ b/.github/workflows/chromatic.yml
@@ -60,6 +60,13 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Get changed files
id: changed-files-yaml
@@ -80,9 +87,9 @@ jobs:
- name: Publish to Chromatic
if: ${{ github.actor != 'renovate[bot]' && github.actor != 'renovate' && steps.changed-files-yaml.outputs.src_any_changed == 'true' }}
uses: chromaui/action@v13
-
- # Chromatic GitHub Action options
with:
workingDir: web
projectToken: f47410569b62
onlyChanged: true
+ branch: ${{ github.head_ref || github.ref_name }}
+ sha: ${{ github.event.pull_request.head.sha || github.sha }}
diff --git a/.github/workflows/css-lint.yaml b/.github/workflows/css-lint.yaml
index 76af821c5a..83fb2c1d88 100644
--- a/.github/workflows/css-lint.yaml
+++ b/.github/workflows/css-lint.yaml
@@ -30,6 +30,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6
diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml
index a40946ef73..cdd090e8cf 100644
--- a/.github/workflows/hls-tests.yml
+++ b/.github/workflows/hls-tests.yml
@@ -47,6 +47,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6
diff --git a/.github/workflows/javascript-format-test-build.yml b/.github/workflows/javascript-format-test-build.yml
index 3b2e759cf2..5d29923caa 100644
--- a/.github/workflows/javascript-format-test-build.yml
+++ b/.github/workflows/javascript-format-test-build.yml
@@ -56,7 +56,14 @@ jobs:
if: github.event_name == 'pull_request'
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
- ref: ${{github.event.pull_request.head.ref}}
+ ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Setup Nodejs
uses: actions/setup-node@v4
@@ -145,6 +152,13 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
+ fetch-depth: 0
+
+ - name: Fetch base branch for comparison
+ if: github.event_name == 'pull_request'
+ run: |
+ git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }}.git || true
+ git fetch upstream ${{ github.event.pull_request.base.ref }}
- name: Check out repository code
uses: actions/checkout@v6