豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 96fdaaa

Browse files
committed
fix(github-actions): only create a single preview channel per PR
This reduces the amount of preview channels we create, avoiding quota issues. See: https://b.corp.google.com/issues/261985459
1 parent 6d049bb commit 96fdaaa

File tree

1 file changed

+3
-3
lines changed
  • github-actions/deploy-previews/upload-artifacts-to-firebase

1 file changed

+3
-3
lines changed

github-actions/deploy-previews/upload-artifacts-to-firebase/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ runs:
8181
# comment. We use our own sticky non-spam comments below.
8282
repoToken: ''
8383
firebaseServiceAccount: '${{inputs.firebase-service-key}}'
84-
expires: 20d
84+
expires: 10d
8585
projectId: '${{inputs.firebase-project-id}}'
8686
entryPoint: '${{inputs.firebase-config-dir}}'
87-
channelId: pr-${{github.repository}}-${{steps.artifact-info.outputs.unsafe-pull-number}}-${{steps.artifact-info.outputs.unsafe-build-revision}}
87+
channelId: pr-${{github.repository}}-${{steps.artifact-info.outputs.unsafe-pull-number}}
8888

8989
- uses: marocchino/sticky-pull-request-comment@fcf6fe9e4a0409cd9316a5011435be0f3327f1e1 # tag=v2
9090
with:
9191
message: |
92-
Deployed ${{inputs.workflow-artifact-name}} to: ${{steps.deploy.outputs.details_url}}
92+
Deployed ${{inputs.workflow-artifact-name}} for ${{steps.artifact-info.outputs.unsafe-build-revision}} to: ${{steps.deploy.outputs.details_url}}
9393
9494
_**Note**: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt._
9595
number: ${{steps.artifact-info.outputs.unsafe-pull-number}}

0 commit comments

Comments
 (0)