From b2c4caf2c5b105b1af68c034a442b72ee01a3953 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 30 Sep 2022 21:41:55 +0200 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6ab1800 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: [push, pull_request] + +jobs: + linting: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'NO_CI')" + strategy: + fail-fast: false + max-parallel: 3 + steps: + - name: Checkout Repository + uses: actions/checkout@main + with: + fetch-depth: 0 + submodules: recursive + token: ${{ secrets.GH_TOKEN }} + - name: Lint Code Base + uses: github/super-linter/slim@v4 + env: + VALIDATE_ALL_CODEBASE: false + VALIDATE_MARKDOWN: true + DEFAULT_BRANCH: develop + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} From 78917566b3e81463cbfe31513be75d8dd65d5f6e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 30 Sep 2022 21:43:50 +0200 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ab1800..51ab156 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,11 +15,11 @@ jobs: with: fetch-depth: 0 submodules: recursive - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_PAT }} - name: Lint Code Base uses: github/super-linter/slim@v4 env: VALIDATE_ALL_CODEBASE: false VALIDATE_MARKDOWN: true DEFAULT_BRANCH: develop - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_PAT }}