diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8dda6d..54bdde0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,9 @@ name: Build and Push to Registry on: push: branches: [ main ] + pull_request: + types: [closed] + branches: [ main ] env: REGISTRY: git.4nkweb.com @@ -11,6 +14,7 @@ env: jobs: build-and-push: runs-on: ubuntu-latest + if: github.event.pull_request.merged == true || github.event_name == 'push' steps: - name: Checkout repository uses: actions/checkout@v4