diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml new file mode 100644 index 0000000..a67a194 --- /dev/null +++ b/.github/workflows/readme.yml @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..8bcfa52 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +#Mastadon utils + +Some mastadon utilities + +## Latest build statuses + +| Workflow | Status | +|---|:---| +| Lint README.md | ![Lint README.md status badge](https://github.com/USERNAME/REPOSITORY/actions/workflows/readme.yml/badge.svg) | \ No newline at end of file