From 7674035b6c237b4ba7649f23c6a5769de6018e1b Mon Sep 17 00:00:00 2001 From: David Driscoll Date: Fri, 22 Mar 2024 19:16:49 -0400 Subject: [PATCH 1/2] Changed the action used to create commits, so that commits can be listed as verified --- src/Nuke/GithubActions/GitHubActionsLintAttribute.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs b/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs index 8d1ccf9b..04600960 100644 --- a/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs +++ b/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs @@ -84,8 +84,9 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection Date: Fri, 22 Mar 2024 23:19:56 +0000 Subject: [PATCH 2/2] Automatically linting code --- .github/workflows/lint.yml | 4 +++- src/Nuke/GithubActions/GitHubActionsLintAttribute.cs | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 482df0eb..5751c247 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -76,7 +76,9 @@ jobs: run: | dotnet nuke LintStaged --skip --thisisaothervariable '${{ vars.THIS_IS_A_VARIABLE }}' --thisisanothervariable '${{ vars.THIS_IS_ANOTHER_VARIABLE }}' --this_is_a_variable '${{ vars.THIS_IS_A_VARIABLE }}' --thisisaenv '${{ env.THIS_IS_A_ENV || 'test' }}' --thisisasecret '${{ secrets.THIS_IS_A_SECRET }}' --githubtoken '${{ secrets.GITHUB_TOKEN }}' - name: Add & Commit + env: + GITHUB_TOKEN: '${{ secrets.RSG_BOT_TOKEN }}' if: "'${{ steps.commit-message.outputs.message }}' == 'Automatically linting code'" - uses: stefanzweifel/git-auto-commit-action@v5 + uses: planetscale/ghcommit-action@v0.1.35 with: commit_message: 'Automatically linting code' diff --git a/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs b/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs index 04600960..0ba0b8c4 100644 --- a/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs +++ b/src/Nuke/GithubActions/GitHubActionsLintAttribute.cs @@ -86,7 +86,7 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection