From 221ba498b9c46e78d26f2322dc8649c85ad14897 Mon Sep 17 00:00:00 2001 From: san-est Date: Wed, 12 Jun 2024 18:05:51 +0300 Subject: [PATCH] Updating job to look only for labeled PRs --- .github/workflows/build-and-push-dockerimage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-dockerimage.yml b/.github/workflows/build-and-push-dockerimage.yml index 249bc82..1f79c55 100644 --- a/.github/workflows/build-and-push-dockerimage.yml +++ b/.github/workflows/build-and-push-dockerimage.yml @@ -1,10 +1,9 @@ name: Docker Image Build and Push to ghcr :) on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] + types: [ labeled ] # Adding this so that I can test my jobs and run workflows manually from the Actions tab in the repository workflow_dispatch: @@ -15,6 +14,7 @@ env: jobs: build-and-push: + if: ${{ github.event.label.name == 'CI:Build' }} runs-on: ubuntu-latest permissions: contents: read