Skip to content

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

Hopefully fix issues running CI on remote forks

Gabe Kangas77b5854c688d
diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.yml
index 11a03fb61e..225ecbe31c 100644
--- a/.github/workflows/build-storybook.yml
+++ b/.github/workflows/build-storybook.yml
@@ -1,7 +1,10 @@
name: Build and Deploy Components+Style Guide
on:
push:
+ branches:
+ - webv2
paths: ['web/stories/**', 'web/components/**'] # Trigger the action only when files change in the folders defined here
+
jobs:
build-and-deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml
index 8c49add8b4..be4ec2e1e9 100644
--- a/.github/workflows/chromatic.yml
+++ b/.github/workflows/chromatic.yml
@@ -7,7 +7,7 @@ on:
push:
paths:
- web/**
- pull_request:
+ pull_request_target:
paths:
- web/**
@@ -24,7 +24,11 @@ jobs:
- uses: actions/checkout@v3
- name: Check out code
with:
+ # Make sure the actual branch is checked out when running on pull requests
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
+
- run: npm install --include=dev --force
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
diff --git a/.github/workflows/javascript-formatting.yml b/.github/workflows/javascript-formatting.yml
index 593eadbcb5..5934d27345 100644
--- a/.github/workflows/javascript-formatting.yml
+++ b/.github/workflows/javascript-formatting.yml
@@ -5,25 +5,26 @@ on:
push:
paths:
- web/**
- pull_request:
+ pull_request_target:
paths:
- web/**
jobs:
prettier:
+ name: Run prettier
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
if: ${{ github.actor != 'dependabot[bot]' }}
-
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
- ref: ${{ github.head_ref }}
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
- name: Prettify code
@@ -36,17 +37,23 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linter:
+ name: Run linter on changed files
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
- name: Run linter on changed files
+
steps:
- name: Checkout
uses: actions/checkout@v3
+ with:
+ # Make sure the actual branch is checked out when running on pull requests
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ fetch-depth: 0
- name: Install Dependencies
- run: npm install --force
+ run: npm install
- name: Lint
run: npm run lint
diff --git a/.github/workflows/test-webapp-build.yaml b/.github/workflows/test-webapp-build.yaml
index 393c06e43f..eceedeaaca 100644
--- a/.github/workflows/test-webapp-build.yaml
+++ b/.github/workflows/test-webapp-build.yaml
@@ -15,11 +15,16 @@ jobs:
defaults:
run:
working-directory: ./web
-
+
name: Build webapp
steps:
- name: Checkout
uses: actions/checkout@v3
+ with:
+ # Make sure the actual branch is checked out when running on pull requests
+ ref: ${{ github.event.pull_request.head.ref }}
+ repository: ${{ github.event.pull_request.head.repo.full_name }}
+ fetch-depth: 0
- name: Install Dependencies
run: npm install