Compare commits

..

9 Commits

Author SHA1 Message Date
6421f74280 Merge pull request 'fix: Update CI pipeline' (#2) from ci into main
Some checks failed
CODESTYLE / Run codestyle check (push) Successful in 38s
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Has been cancelled
CodeQL / Analyze (python) (push) Has started running
Reviewed-on: #2
2024-11-03 19:53:06 -08:00
0eb7e758fd fix: Update runner
All checks were successful
CODESTYLE / Run codestyle check (push) Successful in 58s
CI / Run Test and Review PR (pull_request) Successful in 14m32s
2024-11-03 22:33:21 -05:00
9a45778e72 fix: Update action.yml
Some checks failed
CODESTYLE / Run codestyle check (push) Successful in 1m35s
CI / Run Test and Review PR (pull_request) Failing after 8m1s
2024-11-03 21:05:11 -05:00
779d9cefdd fix: Update CI pipeline
Some checks are pending
CODESTYLE / Run codestyle check (push) Waiting to run
2024-11-03 21:03:05 -05:00
522abb4492 fix: Update docker build
Some checks failed
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Has been cancelled
CODESTYLE / Run codestyle check (push) Successful in 26s
2024-11-03 20:43:38 -05:00
21ab52802b fix: Update text
All checks were successful
CODESTYLE / Run codestyle check (push) Successful in 21s
2024-11-03 20:00:34 -05:00
70f50d4e0a fix: Update actions URLS 2024-11-03 19:54:58 -05:00
f17e5ade05 fix: Update branch name
Some checks failed
CodeQL / Analyze (python) (push) Failing after 11m19s
2024-11-03 19:40:10 -05:00
1a8e6df609 fix: Update action urls 2024-11-03 19:38:08 -05:00
6 changed files with 25 additions and 37 deletions

View File

@@ -5,7 +5,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
publish-server-image:
@@ -14,20 +14,20 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: https://github.com/actions/checkout@v3
- name: Set up Docker Buildx 🐋
uses: docker/setup-buildx-action@v2
uses: https://github.com/docker/setup-buildx-action@v2
- name: Log in to the container registry 🚪
uses: docker/login-action@v2
uses: https://github.com/docker/login-action@v2
with:
username: jofranmtz
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker 🏋️
id: meta
uses: docker/metadata-action@v4
uses: https://github.com/docker/metadata-action@v4
with:
images: jofranmtz/wakapi-readme-stats
tags: |
@@ -37,9 +37,9 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image 🏗️
uses: docker/build-push-action@v4
uses: https://github.com/docker/build-push-action@v4
with:
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/releases') }}
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha

View File

@@ -15,10 +15,10 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: https://github.com/actions/checkout@v3
- name: Setup Python 3.11 🐍
uses: actions/setup-python@v4
uses: https://github.com/actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip'
@@ -29,11 +29,6 @@ jobs:
- name: Create Assets Folder 📥
run: mkdir assets
- name: Create Previous Comments 🫣
uses: int128/hide-comment-action@v1
with:
starts-with: "README stats current output:"
- name: Run Action Preview on Current Code 🧪
id: make-stats
env:
@@ -62,7 +57,7 @@ jobs:
run: python3 sources/main.py
- name: Save Branch Name Without Slashes 📛
if: ${{ github.ref != 'refs/heads/master' }}
if: ${{ github.ref != 'refs/heads/main' }}
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: |
@@ -71,16 +66,8 @@ jobs:
echo BRANCH_NAME=${BRANCH_NAME} >> $GITHUB_ENV
- name: Upload Artifact 📦
uses: actions/upload-artifact@v3
if: ${{ github.ref != 'refs/heads/master' }}
uses: https://github.com/actions/upload-artifact@v3
if: ${{ github.ref != 'refs/heads/main' }}
with:
name: ${{ format('github-pages-for-branch-{0}', env.BRANCH_NAME) }}
path: assets
- name: Create Comment 💬
uses: jungwinter/comment@v1
with:
type: create
body: ${{ steps.make-stats.outputs.README_CONTENT }}
issue_number: ${{ github.event.number }}
token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -2,7 +2,7 @@ name: CodeQL
on:
push:
branches: master
branches: main
pull_request:
workflow_dispatch:
schedule:
@@ -29,10 +29,10 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: https://github.com/actions/checkout@v4
- name: Setup Python 3.11 🐍
uses: actions/setup-python@v4
uses: https://github.com/actions/setup-python@v4
with:
python-version: 3.11
cache: 'pip'
@@ -44,13 +44,13 @@ jobs:
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
- name: Initialize CodeQL 🧑‍💻
uses: github/codeql-action/init@v2
uses: https://github.com/github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
setup-python-dependencies: false
- name: Perform CodeQL Analysis 📈
uses: github/codeql-action/analyze@v2
uses: https://github.com/github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

View File

@@ -10,10 +10,10 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: https://github.com/actions/checkout@v3
- name: Setup Python 3.11 🐍
uses: actions/setup-python@v4
uses: https://github.com/actions/setup-python@v4
with:
python-version: 3.11

View File

@@ -1,4 +1,4 @@
name: Dependency review
name: DEPENDENCY_REVIEW
on: pull_request
permissions:
@@ -11,9 +11,9 @@ jobs:
steps:
- name: Checkout repository 🛎️
uses: actions/checkout@v3
uses: https://github.com/actions/checkout@v4
- name: Dependency review 👀
uses: actions/dependency-review-action@v3
uses: https://github.com/actions/dependency-review-action@v4.4.0
with:
comment-summary-in-pr: true

View File

@@ -175,7 +175,7 @@ async def get_stats() -> str:
for user in data:
username = user.login.replace("-", "--")
stats += f"[![@{user.login}](https://img.shields.io/badge/@{username}-black?style=plastic&logo=github&logoColor=fff)]({user.html_url}) "
stats += f"\n\n###### Follow my account to appear on this list. *The list updates every 12h*\n\n"
stats += "\n\n###### Follow my account to appear on this list. *The list updates every 12h*\n\n"
stats += f"**📈 {FM.t('Stats')}** \n\n"
@@ -230,6 +230,7 @@ async def main():
DBM.i("Managers initialized.")
stats = await get_stats()
DBM.i(str(stats))
if not EM.DEBUG_RUN:
GHM.update_readme(stats)
GHM.commit_update()