Skip to content

Commit

Permalink
Update stellar-zip.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Feb 14, 2025
1 parent fccc9c1 commit 44e5d58
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/stellar-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,32 @@ jobs:
token: ${{ secrets.GH_BOT_TOKEN }}
submodules: recursive

# ------------------------------------------------------------------------------
# Create or update initial status comment
# ------------------------------------------------------------------------------
- name: Find existing comment
if: github.event_name == 'pull_request'
uses: peter-evans/find-comment@v3
id: find_comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Zip Build'

- name: Create or update initial status comment
if: github.event_name == 'pull_request'
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.find_comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
edit-mode: replace
body: |
🏗️ Zip Build Status
[![Build Status](https://github.com/${{ github.repository }}/actions/workflows/${{ github.workflow }}/badge.svg?branch=${{ github.head_ref || github.ref_name }})](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
Please wait while the build completes...
# ------------------------------------------------------------------------------
# Setup Node.
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -309,7 +335,7 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '🎉 Build complete'
body-includes: 'Zip Build'

- name: Generate timestamp badge
if: github.event_name == 'pull_request'
Expand All @@ -330,7 +356,7 @@ jobs:
issue-number: ${{ github.event.pull_request.number }}
edit-mode: replace
body: |
🎉 Build complete
🎉 Zip Build complete
![Build timestamp](${{ steps.timestamp.outputs.badge }})
Expand Down

0 comments on commit 44e5d58

Please sign in to comment.