-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b21c144
Showing
39 changed files
with
13,709 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom: daramet.com/soroushmirzaei |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Execute On Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout Repository Contents | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' #Install Latest Python | ||
|
||
- name: Install Python Packages Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements | ||
- name: Execute Python Script | ||
run: python main.py | ||
|
||
- name: Commit Files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Soroush Mirzaei" | ||
git add -A | ||
git diff-index --quiet HEAD || (git commit -a -m "Updated $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M %Z')" --allow-empty) | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.TG_PRXY_CLCT }} | ||
branch: main | ||
|
||
- name: Clean Up Files | ||
run: | | ||
git checkout --orphan latest_branch | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Soroush Mirzaei" | ||
git add -A | ||
git commit -am "Updated $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M %Z')" | ||
git branch -D main | ||
git branch -m main | ||
git push -f origin main | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.TG_PRXY_CLCT }} | ||
branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Execute On Schedule | ||
|
||
on: | ||
schedule: | ||
- cron: '30 */1 * * *' # Executes at 25 minutes past the hour, every 2 hours. | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout Repository Contents | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Python Packages Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements | ||
- name: Execute Python Script | ||
env: | ||
SOME_SECRET: ${{ secrets.SOME_SECRET }} | ||
run: python main.py | ||
|
||
- name: Commit Files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Soroush Mirzaei" | ||
git add -A | ||
git diff-index --quiet HEAD || (git commit -a -m "Updated $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M %Z')" --allow-empty) | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.TG_PRXY_CLCT }} | ||
branch: main | ||
|
||
- name: Clean Up Files | ||
run: | | ||
git checkout --orphan latest_branch | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Soroush Mirzaei" | ||
git add -A | ||
git commit -am "Updated $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M %Z')" | ||
git branch -D main | ||
git branch -m main | ||
git push -f origin main | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.TG_PRXY_CLCT }} | ||
branch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy Content To Page | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Execute On Schedule", "Execute On Push"] | ||
types: | ||
- completed | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: '.' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
LATEST UPDATE: WED-15-ESFAND-1403 19:19 UTC+03:30 | ||
|
||
tg://proxy?server=45.88.8.196&port=443&secret=ee32b920dffb51643028e2f6b878d4eac17777772e7370656564746573742e6e6574 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
LATEST UPDATE: MON-13-ESFAND-1403 21:18 UTC+03:30 | ||
|
||
tg://proxy?server=45.12.132.59&port=2087&secret=7k-y0D_Rza24CV_TvOtn0hB6dWxhLmly |
Oops, something went wrong.