Skip to content

Commit

Permalink
Changed the action used to create commits, so that commits can be lis… (
Browse files Browse the repository at this point in the history
#1156)

* Changed the action used to create commits, so that commits can be listed as verified

* Automatically linting code

---------

Co-authored-by: david-driscoll <david-driscoll@users.noreply.github.com>
  • Loading branch information
david-driscoll and david-driscoll committed Mar 22, 2024
1 parent f82d568 commit c1a79ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 2 additions & 1 deletion src/Nuke/GithubActions/GitHubActionsLintAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ public override ConfigurationEntity GetConfiguration(IReadOnlyCollection<Executa
new UsingStep("Add & Commit")
{
If = $$$""" "'${{ steps.commit-message.outputs.message }}' == '{{{commitMessage}}}'" """.Trim(),
Uses = "stefanzweifel/git-auto-commit-action@v5",
Uses = "planetscale/ghcommit-action@v0.1.35",
With = { ["commit_message"] = commitMessage, },
Environment = { ["GITHUB_TOKEN"] = $$$"""${{ secrets.{{{TokenSecret}}} }}""", },
}
);

Expand Down

0 comments on commit c1a79ba

Please sign in to comment.