armbian-build/.github/workflows/build-test-image-docker.yml
Igor Pečovnik bcbe9479fa
Build images on PR if label is set to "Desktop" (#3567)
* Enable creating images on PR when label is set to "Desktop"
* Only approved can start this action
2022-03-25 09:49:04 -04:00

20 lines
484 B
YAML

name: Build desktop at pull request
on:
workflow_dispatch:
pull_request:
types: [ labeled ]
paths-ignore:
- .github/workflows
jobs:
Maintain:
if: ${{ github.repository_owner == 'Armbian' && github.event.label.name == 'Desktop' && github.event.review.state == 'approved' }}
uses: armbian/scripts/.github/workflows/build-test-image-docker.yml@master
with:
runner: "ubuntu-latest"
reference: ${{ github.event.pull_request.head.sha }}