mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
ci: stop posting PR comments from preview publish workflow (#1545)
Remove github-script comment step so repeated preview runs do not clutter the PR.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user