Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/clean-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,17 @@ jobs:
- name: Output date
id: output-date
run: echo "date=$(date -u)" >> $GITHUB_OUTPUT
# - name: Maintain comment
# uses: actions-cool/maintain-one-comment@v3
# if: github.event_name != 'workflow_dispatch'
# with:
# body: |
# [${{ steps.output-date.outputs.date }}] - Deleted deployment
# body-include: '<!-- Created by actions-cool/maintain-one-comment -->'
# update-mode: 'append'
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ steps.build-info.outputs.deploy_path }}
comment-author: 'github-actions[bot]'
body-includes: Deployed
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ steps.build-info.outputs.deploy_path }}
body: |
[${{ steps.output-date.outputs.date }}] - Deleted deployment
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
nguyentvan7 marked this conversation as resolved.
26 changes: 16 additions & 10 deletions .github/workflows/deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,19 @@ jobs:
run: echo "date=$(date -u)" >> $GITHUB_OUTPUT
- name: Log Info
run: echo "[${{ steps.vars.outputs.frontend_name }}] [${{ steps.output-date2.outputs.date }}] - ${{ steps.export-url.outputs.url }}"
# - name: Maintain comment
# uses: actions-cool/maintain-one-comment@v3
# if: ${{ steps.vars.outputs.deployment_name != 'beta' }}
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ steps.vars.outputs.deployment_name }}
# body: |
# [${{ steps.vars.outputs.frontend_name }}] [${{ steps.output-date2.outputs.date }}] - ${{ steps.export-url.outputs.url }}
# body-include: '<!-- Created by actions-cool/maintain-one-comment -->'
# update-mode: 'append'
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
if: ${{ steps.vars.outputs.deployment_name != 'beta' }}
with:
issue-number: ${{ steps.vars.outputs.deployment_name }}
comment-author: 'github-actions[bot]'
body-includes: Deployed
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v5
if: ${{ steps.vars.outputs.deployment_name != 'beta' }}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ steps.vars.outputs.deployment_name }}
body: |
[${{ steps.vars.outputs.frontend_name }}] [${{ steps.output-date2.outputs.date }}] - ${{ steps.export-url.outputs.url }}
28 changes: 16 additions & 12 deletions .github/workflows/deploy-somnia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ jobs:
environment:
name: ${{ needs.set-env.outputs.env }}
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write # This is required for requesting the JWT
if: ${{ github.event.workflow_run.conclusion == 'success' && (needs.set-env.outputs.shouldDeploy == 'true' || needs.set-env.outputs.env == 'somnia-prod') }}
steps:
- name: Download build artifact
Expand Down Expand Up @@ -73,13 +71,19 @@ jobs:
- name: Output date
id: output-date
run: echo "date=$(date -u)" >> $GITHUB_OUTPUT
# - name: Maintain comment
# uses: actions-cool/maintain-one-comment@v3
# if: ${{ needs.set-env.outputs.prNumber != '' }}
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# number: ${{ needs.set-env.outputs.prNumber }}
# body: |
# [${{ needs.set-env.outputs.env }}] [${{ steps.output-date.outputs.date }}] - Deployed ${{ needs.set-env.outputs.ref }} to ${{ needs.set-env.outputs.env }}" >> $GITHUB_OUTPUT
# body-include: '<!-- Created by actions-cool/maintain-one-comment -->'
# update-mode: 'append'
- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
if: ${{ needs.set-env.outputs.prNumber != '' }}
with:
issue-number: ${{ needs.set-env.outputs.prNumber }}
comment-author: 'github-actions[bot]'
body-includes: Deployed
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v5
if: ${{ needs.set-env.outputs.prNumber != '' }}
Comment thread
nguyentvan7 marked this conversation as resolved.
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ needs.set-env.outputs.prNumber }}
body: |
[${{ needs.set-env.outputs.env }}] [${{ steps.output-date.outputs.date }}] - Deployed ${{ needs.set-env.outputs.ref }} to ${{ needs.set-env.outputs.env }}
Loading