From 9ed2e82b095593ec7b6428bf9a082abc6b27d62c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 10 Feb 2024 13:18:58 +0100 Subject: [PATCH 1/3] Add linter --- .github/linters/.markdown-lint.yml | 25 +++++++++++++++++++++++++ .github/workflows/Linter.yml | 19 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/linters/.markdown-lint.yml create mode 100644 .github/workflows/Linter.yml diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 00000000..b9ecdfa9 --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,25 @@ +########################### +## Markdown Linter rules ## +########################### + +# Linter rules doc: +# - https://github.com/DavidAnson/markdownlint + +############### +# Rules by id # +############### +MD004: false # Unordered list style +MD007: + indent: 2 # Unordered list indentation +MD013: + line_length: 808 # Line length +MD026: + punctuation: ".,;:!。,;:" # List of not allowed +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML +MD036: false # Emphasis used instead of a heading + +################# +# Rules by tags # +################# +blank_lines: false # Error on blank lines diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml new file mode 100644 index 00000000..a4427d1d --- /dev/null +++ b/.github/workflows/Linter.yml @@ -0,0 +1,19 @@ +name: Linter + +on: + push: + branches-ignore: + - main + +jobs: + Lint: + name: Lint code base + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Lint code base + uses: github/super-linter@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 334d837f888e31d96c3909688d4205945b1baac6 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 10 Feb 2024 13:19:06 +0100 Subject: [PATCH 2/3] Add Auto release --- .github/workflows/Auto-Release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/Auto-Release.yml diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml new file mode 100644 index 00000000..b7630bd2 --- /dev/null +++ b/.github/workflows/Auto-Release.yml @@ -0,0 +1,22 @@ +name: Auto-Release + +on: + pull_request: + branches: + - main + types: + - closed + +jobs: + merged: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Auto-Release + uses: PSModule/Auto-Release@main + with: + eventData: ${{ toJson(github.event.pull_request) }} + env: + GH_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication From eb5adf01b27499c1d83ca40867a60500e6f06c4a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 10 Feb 2024 13:22:56 +0100 Subject: [PATCH 3/3] Fix readme --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81a2d1d1..ae5ce797 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# Actions -Repo for GitHub actions and workflows +# Process-PSModule + +Repository for the PSModule Process-PSModule workflow template. +It stiches together the Initialize, Build, Test, and Publish workflows to create a complete CI/CD pipeline for PowerShell modules.