From 4f6d31641945d2f593499747d90fae3bd2842c67 Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Tue, 18 Apr 2023 14:41:35 +0200 Subject: [PATCH 1/3] Improve Github Workflows --- .github/workflows/CloseInactiveIssues.yml | 1 + .github/workflows/WAU-AutoCreatePreVersion.yml | 1 + .github/workflows/WAU-CreateNewVersion.yml | 7 ++++--- .github/workflows/mega-linter.yml | 2 +- .github/workflows/powershell-tests.yaml | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CloseInactiveIssues.yml b/.github/workflows/CloseInactiveIssues.yml index d86e255..daad263 100644 --- a/.github/workflows/CloseInactiveIssues.yml +++ b/.github/workflows/CloseInactiveIssues.yml @@ -1,3 +1,4 @@ +--- name: Close inactive issues on: schedule: diff --git a/.github/workflows/WAU-AutoCreatePreVersion.yml b/.github/workflows/WAU-AutoCreatePreVersion.yml index ba9b1f6..f40d956 100644 --- a/.github/workflows/WAU-AutoCreatePreVersion.yml +++ b/.github/workflows/WAU-AutoCreatePreVersion.yml @@ -1,3 +1,4 @@ +--- name: Auto Create Pre-Release Version on: diff --git a/.github/workflows/WAU-CreateNewVersion.yml b/.github/workflows/WAU-CreateNewVersion.yml index a61898d..b36522b 100644 --- a/.github/workflows/WAU-CreateNewVersion.yml +++ b/.github/workflows/WAU-CreateNewVersion.yml @@ -1,3 +1,4 @@ +--- name: Create New Version on: @@ -7,9 +8,9 @@ on: type: choice description: Select next release type options: - - Patch - - Minor - - Major + - Patch + - Minor + - Major pre-release: type: boolean description: Set as Pre-release version diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 3750b34..3711c55 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -50,7 +50,7 @@ jobs: SPELL_CSPELL_CONFIG_FILE: .github/cspell.json POWERSHELL_POWERSHELL_CONFIG_FILE: .github/.powershell-psscriptanalyzer.psd1 DISABLE_ERRORS_LINTERS: REPOSITORY_DEVSKIM,REPOSITORY_GIT_DIFF,SPELL_CSPELL,SPELL_PROSELINT,COPYPASTE_JSCPD,MARKDOWN_MARKDOWN_LINK_CHECK - FILTER_REGEX_EXCLUDE: (.github/workflows/) + FILTER_REGEX_EXCLUDE: (workflows/) # Upload MegaLinter artifacts - name: Archive production artifacts diff --git a/.github/workflows/powershell-tests.yaml b/.github/workflows/powershell-tests.yaml index 8c6bef0..4933f7f 100644 --- a/.github/workflows/powershell-tests.yaml +++ b/.github/workflows/powershell-tests.yaml @@ -1,3 +1,4 @@ +--- name: WAU PS Test # yamllint disable-line rule:truthy From 720215d664d66c31ae526e58235247aca39466a1 Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Tue, 18 Apr 2023 14:49:26 +0200 Subject: [PATCH 2/3] Improved Github Workflows --- .github/workflows/WAU-CreateNewVersion.yml | 2 ++ .github/workflows/powershell-tests.yaml | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/WAU-CreateNewVersion.yml b/.github/workflows/WAU-CreateNewVersion.yml index b36522b..e35623c 100644 --- a/.github/workflows/WAU-CreateNewVersion.yml +++ b/.github/workflows/WAU-CreateNewVersion.yml @@ -6,11 +6,13 @@ on: inputs: version: type: choice + default: 'Patch' description: Select next release type options: - Patch - Minor - Major + required: true pre-release: type: boolean description: Set as Pre-release version diff --git a/.github/workflows/powershell-tests.yaml b/.github/workflows/powershell-tests.yaml index 4933f7f..4936854 100644 --- a/.github/workflows/powershell-tests.yaml +++ b/.github/workflows/powershell-tests.yaml @@ -1,14 +1,10 @@ --- -name: WAU PS Test +name: WAU Powershell Test Runs # yamllint disable-line rule:truthy on: - push: pull_request: - types: - - opened - - reopened - - synchronize + branches: [master, main] workflow_dispatch: permissions: From 9cd4dd23c1d5414cf1fe892bb7b73de97869c9ff Mon Sep 17 00:00:00 2001 From: Fabian Seitz Date: Tue, 18 Apr 2023 14:57:03 +0200 Subject: [PATCH 3/3] remove REPOSITORY_CHECKOV from megalinter check --- .github/workflows/mega-linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 3711c55..d3ae61f 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -49,7 +49,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SPELL_CSPELL_CONFIG_FILE: .github/cspell.json POWERSHELL_POWERSHELL_CONFIG_FILE: .github/.powershell-psscriptanalyzer.psd1 - DISABLE_ERRORS_LINTERS: REPOSITORY_DEVSKIM,REPOSITORY_GIT_DIFF,SPELL_CSPELL,SPELL_PROSELINT,COPYPASTE_JSCPD,MARKDOWN_MARKDOWN_LINK_CHECK + DISABLE_ERRORS_LINTERS: REPOSITORY_DEVSKIM,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,SPELL_CSPELL,SPELL_PROSELINT,COPYPASTE_JSCPD,MARKDOWN_MARKDOWN_LINK_CHECK FILTER_REGEX_EXCLUDE: (workflows/) # Upload MegaLinter artifacts