Fixed credits action failing (#21733)
This commit is contained in:
28
.github/workflows/update-credits.yml
vendored
28
.github/workflows/update-credits.yml
vendored
@@ -25,8 +25,28 @@ jobs:
|
|||||||
#- name: Get this week's Patreons
|
#- name: Get this week's Patreons
|
||||||
# run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml
|
# run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml
|
||||||
|
|
||||||
- name: Commit new credit files
|
# MAKE SURE YOU ENABLED "Allow GitHub Actions to create and approve pull requests" IN YOUR ACTIONS, OTHERWISE IT WILL MOST LIKELY FAIL
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
|
|
||||||
|
# For this you can use a pat token of an account with direct push access to the repo if you have protected branches.
|
||||||
|
# Uncomment this and comment the other line if you do this.
|
||||||
|
# https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches
|
||||||
|
|
||||||
|
#- name: Commit new credit files
|
||||||
|
# uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
# with:
|
||||||
|
# commit_message: Update Credits
|
||||||
|
# commit_author: PJBot <pieterjan.briers+bot@gmail.com>
|
||||||
|
|
||||||
|
# This will make a PR
|
||||||
|
- name: Set current date as env variable
|
||||||
|
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
commit_message: Update Credits
|
commit-message: Update Credits
|
||||||
commit_author: PJBot <pieterjan.briers+bot@gmail.com>
|
title: Update Credits
|
||||||
|
body: This is an automated Pull Request. This PR updates the github contributors in the credits section.
|
||||||
|
author: PJBot <pieterjan.briers+bot@gmail.com>
|
||||||
|
branch: automated/credits-${{env.NOW}}
|
||||||
|
|||||||
Reference in New Issue
Block a user