From aed173fa1d8dda50b831f92b6985ab2bc2d54407 Mon Sep 17 00:00:00 2001 From: Anso Date: Wed, 1 Jul 2026 20:00:43 -0400 Subject: [PATCH] ci: stop posting PR comments from preview publish workflow (#1545) Remove github-script comment step so repeated preview runs do not clutter the PR. --- .github/workflows/docker-preview.yml | 40 ---------------------------- 1 file changed, 40 deletions(-) diff --git a/.github/workflows/docker-preview.yml b/.github/workflows/docker-preview.yml index a2e5a537..d1d2e366 100644 --- a/.github/workflows/docker-preview.yml +++ b/.github/workflows/docker-preview.yml @@ -33,7 +33,6 @@ concurrency: permissions: contents: read - pull-requests: write jobs: push_preview_image: @@ -180,7 +179,6 @@ jobs: exit 1 - name: Build and push preview image - id: build uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7 with: context: . @@ -192,41 +190,3 @@ jobs: cache-to: type=gha,mode=max build-args: | APK_CACHE_BUST=${{ steps.apk-bust.outputs.date }} - - - name: Comment on pull request with pull instructions - continue-on-error: true - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - env: - PR_NUMBER: ${{ inputs.pr_number }} - HEAD_SHA: ${{ steps.pr.outputs.head_sha }} - DIGEST: ${{ steps.build.outputs.digest }} - with: - script: | - const prNumber = Number(process.env.PR_NUMBER); - const shortSha = process.env.HEAD_SHA.slice(0, 7); - const digest = process.env.DIGEST; - const body = [ - '## Preview image published', - '', - 'Docker Hub preview tags for this PR:', - '', - '```bash', - `docker pull saelix/sencho:pr-${prNumber}`, - '```', - '', - 'Pinned build:', - '', - '```bash', - `docker pull saelix/sencho:preview-${shortSha}`, - '```', - '', - `Manifest digest: \`${digest}\``, - '', - 'These tags are for pre-merge validation only. They are not cosign-signed and are not suitable as a production pin.', - ].join('\n'); - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: prNumber, - body, - });