From 7cbcc2e14c60b84cee1618824139a6e819f522df Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Sun, 23 Apr 2023 09:06:52 -0700 Subject: [PATCH] build: do not push container images from forks (#869) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(prs): don't push if not sourced from autobrr org * when literals are strings, and strings are nothing. * some say the beginning is like the end. * Update release.yml? * Update release.yml * 🍺 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bc09c1..8d5da57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -187,7 +187,7 @@ jobs: context: . file: ./ci.Dockerfile platforms: linux/amd64,linux/arm/v7,linux/arm64/v8 - push: ${{ github.repository_owner == 'autobrr' }} + push: ${{ github.event.pull_request.head.repo.full_name == 'autobrr/autobrr' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: |