You've already forked wakapi-readme-stats
Compare commits
9 Commits
522abb4492
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| d267ff74f5 | |||
| b4727335f5 | |||
| 5b1e97a439 | |||
| 4a6a6999aa | |||
| 059750c5ee | |||
| 6421f74280 | |||
| 0eb7e758fd | |||
| 9a45778e72 | |||
| 779d9cefdd |
14
.github/workflows/build_image.yml
vendored
14
.github/workflows/build_image.yml
vendored
@@ -14,22 +14,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- name: Checkout 🛎️
|
||||||
uses: https://github.com/actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Docker Buildx 🐋
|
- name: Set up Docker Buildx 🐋
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Log in to the container registry 🚪
|
- name: Log in to the container registry 🚪
|
||||||
uses: https://github.com/docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: jofranmtz
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker 🏋️
|
- name: Extract metadata (tags, labels) for Docker 🏋️
|
||||||
id: meta
|
id: meta
|
||||||
uses: https://github.com/docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: jofranmtz/wakapi-readme-stats
|
images: ${{ vars.DOCKERHUB_IMAGE }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
||||||
- name: Build and push Docker image 🏗️
|
- name: Build and push Docker image 🏗️
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases') }}
|
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases') }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -29,11 +29,6 @@ jobs:
|
|||||||
- name: Create Assets Folder 📥
|
- name: Create Assets Folder 📥
|
||||||
run: mkdir assets
|
run: mkdir assets
|
||||||
|
|
||||||
- name: Create Previous Comments 🫣
|
|
||||||
uses: https://github.com/int128/hide-comment-action@v1
|
|
||||||
with:
|
|
||||||
starts-with: "README stats current output:"
|
|
||||||
|
|
||||||
- name: Run Action Preview on Current Code 🧪
|
- name: Run Action Preview on Current Code 🧪
|
||||||
id: make-stats
|
id: make-stats
|
||||||
env:
|
env:
|
||||||
@@ -62,7 +57,7 @@ jobs:
|
|||||||
run: python3 sources/main.py
|
run: python3 sources/main.py
|
||||||
|
|
||||||
- name: Save Branch Name Without Slashes 📛
|
- name: Save Branch Name Without Slashes 📛
|
||||||
if: ${{ github.ref != 'refs/heads/master' }}
|
if: ${{ github.ref != 'refs/heads/main' }}
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
@@ -72,15 +67,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Artifact 📦
|
- name: Upload Artifact 📦
|
||||||
uses: https://github.com/actions/upload-artifact@v3
|
uses: https://github.com/actions/upload-artifact@v3
|
||||||
if: ${{ github.ref != 'refs/heads/master' }}
|
if: ${{ github.ref != 'refs/heads/main' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ format('github-pages-for-branch-{0}', env.BRANCH_NAME) }}
|
name: ${{ format('github-pages-for-branch-{0}', env.BRANCH_NAME) }}
|
||||||
path: assets
|
path: assets
|
||||||
|
|
||||||
- name: Create Comment 💬
|
|
||||||
uses: https://github.com/jungwinter/comment@v1
|
|
||||||
with:
|
|
||||||
type: create
|
|
||||||
body: ${{ steps.make-stats.outputs.README_CONTENT }}
|
|
||||||
issue_number: ${{ github.event.number }}
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
2
.github/workflows/dependency-review.yml
vendored
2
.github/workflows/dependency-review.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Dependency review
|
name: DEPENDENCY_REVIEW
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
15
.github/workflows/publish_release.yml
vendored
Normal file
15
.github/workflows/publish_release.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Publish release
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: 1.0
|
||||||
|
|
||||||
@@ -230,6 +230,7 @@ async def main():
|
|||||||
DBM.i("Managers initialized.")
|
DBM.i("Managers initialized.")
|
||||||
|
|
||||||
stats = await get_stats()
|
stats = await get_stats()
|
||||||
|
DBM.i(str(stats))
|
||||||
if not EM.DEBUG_RUN:
|
if not EM.DEBUG_RUN:
|
||||||
GHM.update_readme(stats)
|
GHM.update_readme(stats)
|
||||||
GHM.commit_update()
|
GHM.commit_update()
|
||||||
|
|||||||
Reference in New Issue
Block a user