fix: allow forks to push to registry with label (#86)

This commit is contained in:
Marco Ceppi
2023-02-27 21:58:54 -05:00
committed by GitHub
parent dadc3ba2ff
commit 14b1b7cb04

View File

@@ -1,6 +1,7 @@
name: build-ublue name: build-ublue
on: on:
pull_request: pull_request_target:
types: [labeled]
branches: branches:
- main - main
paths-ignore: paths-ignore:
@@ -22,6 +23,7 @@ jobs:
push-ghcr: push-ghcr:
name: Build and push image name: Build and push image
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: contains(github.event.pull_request.labels.*.name, 'ok-to-build')
permissions: permissions:
contents: read contents: read
packages: write packages: write