Skip to content

Commit aab00b2

Browse files
Merge pull request #27 from recursivezero/feature/RTY-260025
[RTY-260025]
2 parents 08c5e46 + ef66e16 commit aab00b2

36 files changed

+3242
-2371
lines changed

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ MODE=local
22
MONGO_URI=mongodb://<username>:<password>@127.0.0.1:27017/?authSource=admin&retryWrites=true&w=majority
33
DOMAIN=https://localhost:8001
44
PORT=8001
5-
API_VERSION=""
6-
APP_NAMe="LOCAL"
5+
API_VERSION="/api/v1"
6+
APP_NAME="LOCAL"

.github/actions/comment-on-issue/action.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/actions/format-issue-title/action.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/actions/format-issue-title/format.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/comment-on-issue.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: "Issue number"
1111
required: true
1212
type: number
13+
comment_body:
14+
description: "Comment text"
15+
required: true
16+
type: string
1317

1418
permissions:
1519
issues: write
@@ -20,16 +24,9 @@ jobs:
2024
steps:
2125
- uses: actions/checkout@v4
2226

23-
- uses: actions/github-script@v8
27+
- name: Run Comment Action
28+
uses: recursivezero/action-club/.github/actions/comment-on-issue@main
2429
with:
25-
script: |
26-
// For workflow_dispatch, use the input; for issue events, use context.issue.number
27-
const issue_number = context.payload.inputs?.issue_number
28-
? parseInt(context.payload.inputs.issue_number, 10)
29-
: context.issue.number;
30-
31-
await github.rest.issues.createComment({
32-
...context.repo,
33-
issue_number,
34-
body: "👋 Thank you for opening this issue! We will look into it as soon as possible."
35-
});
30+
issue_number: ${{ github.event.inputs.issue_number }}
31+
comment_body: ${{ github.event.inputs.comment_body }}
32+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy App
2+
run-name: Deploy Tiny App to Cloud Server
3+
4+
on:
5+
push:
6+
branches: [release]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
environment: production
12+
steps:
13+
- name: Deploy via SSH
14+
uses: appleboy/ssh-action@master
15+
with:
16+
host: ${{ secrets.HOST }}
17+
username: ${{ secrets.USERNAME }}
18+
key: ${{ secrets.SSH_PRIVATE_KEY }}
19+
script: |
20+
cd /opt/tz_apps/tiny
21+
# Fetch latest code
22+
git pull origin release
23+
24+
# Install dependencies (Production mode, no dev deps)
25+
/root/.local/bin/poetry install --only main --all-extras --sync
26+
27+
# Restart the service
28+
sudo systemctl restart tiny.service

.github/workflows/format-issue-title.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Auto Format Issue Title"
1+
name: "Format Issue Title"
22

33
on:
44
issues:
@@ -11,7 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Format issue title
14-
uses: recursivezero/template/.github/actions/format-issue-title@v2.6
14+
uses: recursivezero/action-club/.github/actions/format-issue-title@v0.2.57
1515
with:
1616
prefix: RTY
17-
dry_run: false
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Sync Main to Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Required to compare branches
18+
19+
- name: Check for Code Differences
20+
id: diff_check
21+
run: |
22+
DIFF=$(git diff origin/release...origin/main --name-only)
23+
if [ -z "$DIFF" ]; then
24+
echo "No changes found between main and release. Skipping."
25+
echo "has_changes=false" >> $GITHUB_OUTPUT
26+
echo "## ⏭️ Sync Skipped" >> $GITHUB_STEP_SUMMARY
27+
echo "Main and Release are already in sync." >> $GITHUB_STEP_SUMMARY
28+
else
29+
echo "has_changes=true" >> $GITHUB_OUTPUT
30+
fi
31+
32+
- name: Run PR Logic
33+
if: steps.diff_check.outputs.has_changes == 'true'
34+
uses: recursivezero/action-club/.github/actions/release-pr@main
35+
with:
36+
# Use your PAT here if the standard token continues to fail
37+
github_token: ${{ secrets.PROJECT_PAT }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ poetry.lock
5959
*.tmp
6060
*.temp
6161
*.bak
62+
63+
64+
assets/images/qr/*
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
appleboy
12
projectx
3+
RZRO
24
xkeshav

0 commit comments

Comments
 (0)