different way of checking docker build label

This commit is contained in:
fkwp
2024-04-10 11:25:50 +00:00
parent 907e7bdf52
commit 876c904eb0

View File

@@ -14,12 +14,11 @@ env:
IMAGE_NAME: ${{ github.repository }}
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && github.event.label.name == 'docker build' }}
build_docker:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'docker build') }}
runs-on: ubuntu-latest
permissions:
deployments: write
environment: Netlify
steps:
- name: 📥 Download artifact
uses: actions/download-artifact@v4