Skip to content

suba327777/README.Mountain

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

README.Mountain

A tool to generate your github mountain for profile README.

Stargazers Releases

Themes

default dark sakura maple
スクリーンショット 2024-05-13 22 48 51 スクリーンショット 2024-05-13 22 47 30 スクリーンショット 2024-05-13 22 14 26 スクリーンショット 2024-05-13 22 15 02
onedark solarized solarized_dark
スクリーンショット 0006-06-29 14 39 43 スクリーンショット 0006-06-29 14 37 28 スクリーンショット 0006-06-29 14 34 55

how to use (fpr GitHub Actions)

  1. Create your repository.
  2. Create workflow file. path: .github/workflow/generate-mountain.yml

example:

on:
  schedule: # run 0:00 (JST)
    - cron: "0 9 * * *"
  workflow_dispatch:

jobs:
  readme_mountain:
    runs-on: ubuntu-latest
    name: generate-mountain
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Use README.Mountain
        uses: suba327777/README.Mountain@release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          USERNAME: ${{ github.repository_owner }}
          # select theme
          THEME: "default"
      - name: Diff
        id: diff
        run: |
          git add -N .
          git diff --name-only --exit-code
        continue-on-error: true
      - name: commit & push
        run: |
          git config user.name  "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git add .
          git commit -m "[μRM] generate svg."
          git push
        if: steps.diff.outcome == 'failure'

dependency, environments

  • golang 1.21