Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

README mountain

v1.0.5

README mountain

activity

README mountain

This action runs a μ-lab hackathon

Installation

Copy and paste the following snippet into your .yml file.

              

- name: README mountain

uses: suba327777/README.Mountain@v1.0.5

Learn more about this action in suba327777/README.Mountain

Choose a version

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 13 21 11 スクリーンショット 0006-06-29 13 19 19 スクリーンショット 0006-06-29 13 17 06

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