diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 1684f04..7a72ed6 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -59,6 +59,7 @@ jobs: version: latest endpoint: builders - name: Login to GHCR + if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ${{ env.registry }} @@ -70,6 +71,6 @@ jobs: with: context: . platforms: ${{ env.platforms }} - push: true + if: github.event_name != 'pull_request' tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index 85d18d3..10708d5 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -1,14 +1,17 @@ name: Size Label on: - pull_request: - -permissions: - contents: read - pull-requests: write + pull_request_target: + types: + - opened + - edited + - synchronize jobs: size-label: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - name: size-label