Skip to content

Commit

Permalink
Updating job to look only for labeled PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
san-est committed Jun 12, 2024
1 parent 59eebe5 commit 221ba49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-dockerimage.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -15,6 +14,7 @@ env:

jobs:
build-and-push:
if: ${{ github.event.label.name == 'CI:Build' }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit 221ba49

Please sign in to comment.