Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a readme plus actions #1

Merged
merged 3 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint README.md

on:
push:
paths:
- 'README.md' # Trigger only when README.md is modified
branches: [main] # Trigger on pushes to the main branch
pull_request:
paths:
- 'README.md' # Trigger only when README.md is modified
branches: [main] # Also trigger on pull requests to main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # Checkout the repository
- uses: actions/setup-node@v3
with:
node-version: 16 # Use Node.js version 16
- run: npm install -g markdownlint-cli # Install markdownlint-cli
- run: markdownlint README.md # Lint the README.md file
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mastadon utils

Some mastadon utilities I wrote

## Latest build statuses

| Workflow | Status |
|---|:---|
| Lint README.md | ![Lint README.md status badge](https://github.com/USERNAME/REPOSITORY/actions/workflows/readme.yml/badge.svg) |