Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Update CI jobs to support PR branches (#4189)
Gabe Kangasa75d40cd5dc8
diff --git a/.github/workflows/actions-lint.yml b/.github/workflows/actions-lint.ymlindex ae0eca96eb..51ed22b85f 100644--- a/.github/workflows/actions-lint.yml+++ b/.github/workflows/actions-lint.yml@@ -18,6 +18,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/automated-end-to-end-api.yaml b/.github/workflows/automated-end-to-end-api.yamlindex 572661a8b2..6ecebc640b 100644--- a/.github/workflows/automated-end-to-end-api.yaml+++ b/.github/workflows/automated-end-to-end-api.yaml@@ -23,6 +23,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.ymlindex 0501e9320a..fae008cc9f 100644--- a/.github/workflows/browser-testing.yml+++ b/.github/workflows/browser-testing.yml@@ -24,6 +24,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.ymlindex a292bab37b..239f793ac1 100644--- a/.github/workflows/build-storybook.yml+++ b/.github/workflows/build-storybook.yml@@ -21,6 +21,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4@@ -48,6 +49,7 @@ jobs:npm run build-storybook -- -o ../docs/components- name: Commit changes+ if: github.repository == 'owncast/owncast'uses: EndBug/add-and-commit@v9with:author_name: Owncast@@ -59,6 +61,7 @@ jobs:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- name: Dispatch event to web site+ if: github.repository == 'owncast/owncast'uses: peter-evans/repository-dispatch@v3with:token: ${{ secrets.BUNDLE_STORYBOOK_OWNCAST_ONLINE }}diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.ymlindex e8ec68177f..a413107433 100644--- a/.github/workflows/chromatic.yml+++ b/.github/workflows/chromatic.yml@@ -7,7 +7,7 @@ on:push:paths:- web/**- pull_request_target:+ pull_request:paths:- web/**@@ -16,7 +16,6 @@ jobs:chromatic-deployment:# Operating Systemruns-on: ubuntu-latest- if: github.repository == 'owncast/owncast'defaults:run:@@ -28,15 +27,16 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Check out pull request code+ - name: Check out repository code (Push)+ if: github.event_name == 'push'uses: actions/checkout@v4- if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'- with:- repository: ${{ github.event.pull_request.head.repo.full_name }}- - name: Check out repository code+ - name: Check out pull request code (PR)+ if: github.event_name == 'pull_request'uses: actions/checkout@v4- if: github.event_name == 'push'+ with:+ ref: ${{ github.event.pull_request.head.ref }}+ repository: ${{ github.event.pull_request.head.repo.full_name }}- name: Get changed filesid: changed-files-yamldiff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex d8607b68e2..b359eb1f05 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -41,6 +41,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/container-lint.yml b/.github/workflows/container-lint.ymlindex 88c765e05c..3ba3981554 100644--- a/.github/workflows/container-lint.yml+++ b/.github/workflows/container-lint.yml@@ -24,6 +24,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yamlindex 41dd974382..04ad2eca9d 100644--- a/.github/workflows/container.yaml+++ b/.github/workflows/container.yaml@@ -42,6 +42,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/css-lint.yaml b/.github/workflows/css-lint.yamlindex 5d160968ca..a9ab9be71a 100644--- a/.github/workflows/css-lint.yaml+++ b/.github/workflows/css-lint.yaml@@ -21,6 +21,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/generate-api-documentation.yaml b/.github/workflows/generate-api-documentation.yamlindex d402f69efb..9719bd44c3 100644--- a/.github/workflows/generate-api-documentation.yaml+++ b/.github/workflows/generate-api-documentation.yaml@@ -14,6 +14,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.ymlindex c381b91cdd..f8db42b37b 100644--- a/.github/workflows/hls-tests.yml+++ b/.github/workflows/hls-tests.yml@@ -30,6 +30,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4diff --git a/.github/workflows/javascript-format-test-build.yml b/.github/workflows/javascript-format-test-build.ymlindex 55db61b344..46b78f35d8 100644--- a/.github/workflows/javascript-format-test-build.yml+++ b/.github/workflows/javascript-format-test-build.yml@@ -121,6 +121,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4@@ -191,6 +192,7 @@ jobs:if: github.event_name == 'pull_request'with:repository: ${{ github.event.pull_request.head.repo.full_name }}+ ref: ${{ github.event.pull_request.head.ref }}- name: Check out repository codeuses: actions/checkout@v4