From 14b1b7cb044ec616817aa30075609469dcb9986b Mon Sep 17 00:00:00 2001 From: Marco Ceppi Date: Mon, 27 Feb 2023 21:58:54 -0500 Subject: [PATCH] fix: allow forks to push to registry with label (#86) --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cc0d85..5afa9cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: build-ublue on: - pull_request: + pull_request_target: + types: [labeled] branches: - main paths-ignore: @@ -22,6 +23,7 @@ jobs: push-ghcr: name: Build and push image runs-on: ubuntu-22.04 + if: contains(github.event.pull_request.labels.*.name, 'ok-to-build') permissions: contents: read packages: write