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
70 changes: 70 additions & 0 deletions .github/workflows/auto-release-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Auto Release PR

on:
push:
branches: [develop]
workflow_dispatch:

permissions:
contents: read
pull-requests: write

concurrency:
group: auto-release-pr
cancel-in-progress: false

jobs:
create-release-pr:
name: Create Release PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch main branch
run: git fetch origin main

- name: Check for existing PR
id: check-pr
run: |
PR_COUNT=$(gh pr list --base main --head develop --state open --json number --jq 'length')
echo "pr_exists=$([[ $PR_COUNT -gt 0 ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
echo "::notice::Open PRs from develop to main: $PR_COUNT"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Check for differences
id: check-diff
if: steps.check-pr.outputs.pr_exists == 'false'
run: |
DIFF_COUNT=$(git rev-list --count origin/main..origin/develop)
echo "has_changes=$([[ $DIFF_COUNT -gt 0 ]] && echo 'true' || echo 'false')" >> $GITHUB_OUTPUT
echo "commit_count=$DIFF_COUNT" >> $GITHUB_OUTPUT
echo "::notice::Commits ahead of main: $DIFF_COUNT"

- name: Create Release PR
if: steps.check-pr.outputs.pr_exists == 'false' && steps.check-diff.outputs.has_changes == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_COUNT: ${{ steps.check-diff.outputs.commit_count }}
run: |
printf '%s\n' \
"## Automatic Release PR" \
"" \
"This PR was automatically created after changes were pushed to develop." \
"" \
"**Commits:** ${COMMIT_COUNT} new commit(s)" \
"" \
"### Checklist" \
"- [ ] Review all changes" \
"- [ ] Verify CI passes" \
"- [ ] Approve and merge when ready for production" \
> /tmp/pr-body.md

gh pr create \
--base main \
--head develop \
--title "Release: develop -> main" \
--body-file /tmp/pr-body.md
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@
<path d="M51 26C51 39.8071 39.8071 51 26 51C12.1929 51 1 39.8071 1 26C1 12.1929 12.1929 1 26 1C39.8071 1 51 12.1929 51 26Z" stroke="white" stroke-width="2" stroke-miterlimit="10"></path>
<path d="M33.9139 20.7366C33.3515 20.4152 32.6283 20.4152 31.9854 20.7366L27.4856 23.3883L24.4322 25.0758L20.0127 27.7274C19.4502 28.0488 18.7271 28.0488 18.0842 27.7274L14.629 25.6382C14.0665 25.3168 13.6648 24.674 13.6648 23.9508V19.9331C13.6648 19.2903 13.9862 18.6474 14.629 18.2457L18.0842 16.2368C18.6467 15.9154 19.3699 15.9154 20.0127 16.2368L23.4679 18.326C24.0304 18.6474 24.4322 19.2903 24.4322 20.0135V22.6651L27.4856 20.8974V18.1653C27.4856 17.5225 27.1642 16.8797 26.5214 16.4779L20.0931 12.7013C19.5306 12.3799 18.8074 12.3799 18.1646 12.7013L11.5756 16.5582C10.9327 16.8797 10.6113 17.5225 10.6113 18.1653V25.7186C10.6113 26.3614 10.9327 27.0042 11.5756 27.406L18.0842 31.1826C18.6467 31.5041 19.3699 31.5041 20.0127 31.1826L24.4322 28.6113L27.4856 26.8435L31.9051 24.2722C32.4676 23.9508 33.1908 23.9508 33.8336 24.2722L37.2888 26.2811C37.8513 26.6025 38.253 27.2453 38.253 27.9685V31.9862C38.253 32.629 37.9316 33.2718 37.2888 33.6736L33.9139 35.6825C33.3515 36.0039 32.6283 36.0039 31.9854 35.6825L28.5302 33.6736C27.9678 33.3522 27.566 32.7094 27.566 31.9862V29.4149L24.5125 31.1826V33.8343C24.5125 34.4771 24.834 35.12 25.4768 35.5217L31.9854 39.2984C32.5479 39.6198 33.2711 39.6198 33.9139 39.2984L40.4226 35.5217C40.9851 35.2003 41.3868 34.5575 41.3868 33.8343V26.2007C41.3868 25.5579 41.0654 24.915 40.4226 24.5133L33.9139 20.7366Z" fill="white"></path>
</svg></div>
<div class="icon-2 w-embed"><svg width="54" height="54" viewbox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M27 53C41.3594 53 53 41.3594 53 27C53 12.6406 41.3594 1 27 1C12.6406 1 1 12.6406 1 27C1 41.3594 12.6406 53 27 53Z" stroke="white" stroke-width="1.06122" stroke-miterlimit="10"></path>
<g transform="scale(1.6875)">
<path d="M22.17 10.5c-1.34 0-2.803.667-4.348 1.982a19.032 19.032 0 00-1.843 1.824l.002.002.002-.002s.752.794 1.578 1.643a17.474 17.474 0 011.827-1.842c1.374-1.169 2.272-1.414 2.783-1.414 1.927 0 3.495 1.484 3.495 3.307 0 1.814-1.569 3.296-3.498 3.308-.088 0-.2-.01-.34-.04.562.235 1.166.405 1.742.405 3.533 0 4.223-2.237 4.27-2.396.105-.41.16-.837.16-1.276 0-3.034-2.615-5.501-5.83-5.501zm-12.34 11c1.34 0 2.803-.667 4.348-1.982a19.032 19.032 0 001.843-1.824l-.002-.002a.025.025 0 01-.002.002s-.752-.794-1.578-1.643a17.474 17.474 0 01-1.827 1.842c-1.374 1.169-2.272 1.414-2.783 1.414-1.927 0-3.495-1.484-3.495-3.307 0-1.814 1.569-3.296 3.498-3.308.088 0 .2.01.34.04-.562-.235-1.166-.405-1.742-.405-3.533 0-4.223 2.237-4.27 2.396-.105.41-.16.837-.16 1.276C4 19.033 6.615 21.5 9.83 21.5z" fill="white"></path>
<path d="M23.563 19.617c-1.809-.043-3.689-1.427-4.072-1.771-.991-.89-3.278-3.297-3.457-3.486-1.676-1.822-3.948-3.86-6.205-3.86h-.005c-2.744.013-5.05 1.817-5.663 4.224.047-.159.948-2.439 4.267-2.36 1.809.044 3.698 1.447 4.081 1.79.991.89 3.279 3.298 3.457 3.487 1.676 1.821 3.948 3.859 6.205 3.859h.005c2.744-.013 5.05-1.817 5.663-4.224-.046.159-.957 2.42-4.276 2.341z" fill="white"></path>
</g>
</svg></div>
<div class="icon-2 w-embed"><svg width="54" height="54" viewbox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M27 53C41.3594 53 53 41.3594 53 27C53 12.6406 41.3594 1 27 1C12.6406 1 1 12.6406 1 27C1 41.3594 12.6406 53 27 53Z" stroke="white" stroke-width="1.43265" stroke-miterlimit="10" stroke-linecap="round"></path>
<circle cx="19.6564" cy="27" r="1.65637" fill="white"></circle>
Expand Down
Loading