Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(ci): split up checkout steps for push vs. pull request (#3911)
Gabe Kangas536c45c8da1b
diff --git a/.github/workflows/actions-lint.yml b/.github/workflows/actions-lint.ymlindex 1e987808ae..ae0eca96eb 100644--- a/.github/workflows/actions-lint.yml+++ b/.github/workflows/actions-lint.yml@@ -13,7 +13,15 @@ jobs:name: GitHub actionsruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - name: Check out pull request code+ uses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- uses: docker://rhysd/actionlint:latestwith:diff --git a/.github/workflows/automated-end-to-end-api.yaml b/.github/workflows/automated-end-to-end-api.yamlindex 333c81341c..f878fb1754 100644--- a/.github/workflows/automated-end-to-end-api.yaml+++ b/.github/workflows/automated-end-to-end-api.yaml@@ -18,8 +18,15 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Checkout repository+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Get changed filesid: changed-files-yamldiff --git a/.github/workflows/browser-testing.yml b/.github/workflows/browser-testing.ymlindex fb9ed2f1f9..6a43c35490 100644--- a/.github/workflows/browser-testing.yml+++ b/.github/workflows/browser-testing.yml@@ -19,8 +19,15 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- uses: actions/setup-node@v4with:diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.ymlindex ca6c2f3584..96dfdac9db 100644--- a/.github/workflows/build-storybook.yml+++ b/.github/workflows/build-storybook.yml@@ -11,8 +11,15 @@ jobs:if: github.repository == 'owncast/owncast'steps:- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Cache node modulesuses: actions/cache@v4diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.ymlindex 82ab098ee6..ba2d2b92be 100644--- a/.github/workflows/chromatic.yml+++ b/.github/workflows/chromatic.yml@@ -28,13 +28,15 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Check out code+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'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: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Get changed filesid: changed-files-yamldiff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex 8392c19386..d8607b68e2 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -36,8 +36,15 @@ jobs:# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzedsteps:- - name: Checkout repository+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- uses: actions/setup-go@v5with:diff --git a/.github/workflows/container-lint.yml b/.github/workflows/container-lint.ymlindex 3d0319c530..88c765e05c 100644--- a/.github/workflows/container-lint.yml+++ b/.github/workflows/container-lint.yml@@ -19,7 +19,15 @@ jobs:container:image: aquasec/trivysteps:- - uses: actions/checkout@v4+ - name: Check out pull request code+ uses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Check critical issuesrun: trivy config --exit-code 1 --severity "HIGH,CRITICAL" ./Dockerfilediff --git a/.github/workflows/container.yaml b/.github/workflows/container.yamlindex 7993e1db37..14c9e6a226 100644--- a/.github/workflows/container.yaml+++ b/.github/workflows/container.yaml@@ -37,10 +37,15 @@ jobs:image: tonistiigi/binfmt:latestplatforms: all- - name: Checkout repo+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'with:- fetch-depth: 0+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Build and pushif: ${{ github.event_name == 'schedule' && env.GH_CR_PAT != null }}diff --git a/.github/workflows/css-lint.yaml b/.github/workflows/css-lint.yamlindex 326253562f..7694adea89 100644--- a/.github/workflows/css-lint.yaml+++ b/.github/workflows/css-lint.yaml@@ -16,8 +16,15 @@ jobs:working-directory: ./websteps:- - name: Checkout repository+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Get changed filesid: changed-files-yamldiff --git a/.github/workflows/generate-api-documentation.yaml b/.github/workflows/generate-api-documentation.yamlindex 96351dd681..d402f69efb 100644--- a/.github/workflows/generate-api-documentation.yaml+++ b/.github/workflows/generate-api-documentation.yaml@@ -9,8 +9,15 @@ jobs:name: Generate API Documentationruns-on: ubuntu-lateststeps:- - name: Checkout repo+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Run redoc on openapi.yamlrun: |diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.ymlindex d5d35ed493..6200ad2d74 100644--- a/.github/workflows/hls-tests.yml+++ b/.github/workflows/hls-tests.yml@@ -25,8 +25,15 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Checkout repository+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Get changed filesid: changed-files-yamldiff --git a/.github/workflows/javascript-format-build.yml b/.github/workflows/javascript-format-build.ymlindex f4d2232652..8a2ab2b3d3 100644--- a/.github/workflows/javascript-format-build.yml+++ b/.github/workflows/javascript-format-build.yml@@ -28,14 +28,15 @@ jobs:cancel_others: 'true'skip_after_successful_duplicate: 'true'- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'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- persist-credentials: true++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Get changed filesid: changed-files-yaml@@ -101,13 +102,15 @@ jobs:cancel_others: 'true'skip_after_successful_duplicate: 'true'- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'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: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Cache node modulesuses: actions/cache@v4@@ -155,13 +158,15 @@ jobs:${{ runner.os }}-build-${{ runner.os }}-- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'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: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Bundle web app (next.js build)run: build/web/bundleWeb.shdiff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.ymlindex 8bf6b37ee7..7289ccd2c7 100644--- a/.github/workflows/javascript-tests.yml+++ b/.github/workflows/javascript-tests.yml@@ -17,8 +17,15 @@ jobs:with:concurrent_skipping: 'same_content_newer'- - name: Checkout+ - name: Check out pull request codeuses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- uses: actions/setup-node@v4with:diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.ymlindex c4c87c1748..bad1b5e1f3 100644--- a/.github/workflows/screenshots.yml+++ b/.github/workflows/screenshots.yml@@ -14,7 +14,16 @@ jobs:Screenshots:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4+ - name: Check out pull request code+ uses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'+- uses: actions/setup-go@v5with:go-version: '1.22'diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.ymlindex 3d2989c509..bd3b039327 100644--- a/.github/workflows/shellcheck.yml+++ b/.github/workflows/shellcheck.yml@@ -20,7 +20,15 @@ jobs:container:image: docker.io/ubuntu:24.04steps:- - uses: actions/checkout@v4+ - name: Check out pull request code+ uses: actions/checkout@v4+ if: github.event_name == 'pull_request'+ with:+ repository: ${{ github.event.pull_request.head.repo.full_name }}++ - name: Check out repository code+ uses: actions/checkout@v4+ if: github.event_name == 'push'- name: Install shellcheckrun: apt update && apt install -y shellcheck bash && shellcheck --version