How can I make it so that no one would be authored? #303
-
For my purpose, this will be used weekly automatically to update a "credits" file Since this will be automatic, there's no reason for it to co-author people. It just looks ugly especially if it co-authors an unrelated committer Any way to just remove this? name: Update Contrib and Patreons in credits
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0
jobs:
get_credits:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.6.0
with:
ref: master
- name: Get this week's Contributors
shell: pwsh
run: Tools/dump_github_contributors.ps1 > Resources/Credits/GitHub.txt
#- name: Get this week's Patreons
# shell: pwsh
# run: Tools/patreonscripthere.amog > Resources/Credits/Patrons.yml
- name: Commit new credit files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Credits
commit_author: # My attempt to make it empty here...
branch: actiontest
create_branch: true My other option is to coauthor one of our bot's but I'm not really into that idea |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi there. I haven't tested this, but you could set the - name: Commit new credit files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Credits
commit_author: # My attempt to make it empty here...
+ commit_user_name: ${{ github.actor }}
+ commit_user_email: ${{ github.actor }}@users.noreply.github.com
branch: actiontest
create_branch: true For context, git-auto-commit currently hard codes these values to
I would like to understand better, why you think this looks ugly. You're not the first one to mention that they don't like that commits are co-authored by Github Actions. I've added this feature to the Action as I wanted to highlight to others, that this commit wasn't made by a human, but by a bot. |
Beta Was this translation helpful? Give feedback.
@stefanzweifel
Actually that was exactly what I was looking for! This:
So it doesn't add a user as an author