From edaad84a5a03fa10a7fcb36e72db591522f5141b Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 25 Oct 2022 14:18:59 +0200 Subject: [PATCH] check gortsplib before publishing a release --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20dc35d032e..366a076e580 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,25 @@ on: - 'v*' jobs: + # make sure that gortsplib is updated + check_gortsplib: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + with: + go-version: "1.18" + + - run: | + sed -i '/gortsplib/d' go.mod + go mod download + go mod tidy + git diff --exit-code + github: + needs: check_gortsplib runs-on: ubuntu-20.04 steps: @@ -42,6 +60,7 @@ jobs: } dockerhub: + needs: check_gortsplib runs-on: ubuntu-20.04 steps: @@ -53,6 +72,7 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} apidocs: + needs: check_gortsplib runs-on: ubuntu-20.04 steps: