From b58ef2850baea6de436e505dd893f05ef3bf44b3 Mon Sep 17 00:00:00 2001 From: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:56:22 -0700 Subject: [PATCH] Update the Credits Action (#28) # Description On a repository (and organization) level, I have enabled Actions to create and approve pull requests. This PR will have the in-game GitHub contributor credits automatically updated every week. --- .github/workflows/update-credits.yml | 6 +++--- Tools/dump_github_contributors.ps1 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-credits.yml b/.github/workflows/update-credits.yml index fb3508385e..69a8bc1988 100644 --- a/.github/workflows/update-credits.yml +++ b/.github/workflows/update-credits.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest # Hey there fork dev! If you like to include your own contributors in this then you can probably just change this to your own repo # Do this in dump_github_contributors.ps1 too into your own repo - if: github.repository == 'DeltaV-Station/Delta-v' + if: github.repository == 'Simple-Station/Einstein-Engines' steps: - uses: actions/checkout@v3.6.0 @@ -47,6 +47,6 @@ jobs: with: commit-message: Update Credits title: Update Credits - body: This is an automated Pull Request. This PR updates the github contributors in the credits section. - author: DeltaV-Bot + body: This is an automated Pull Request. This PR updates the GitHub contributors in the credits section. + author: ${{ vars.CHANGELOG_USER }} <${{ vars.CHANGELOG_EMAIL }}> branch: automated/credits-${{env.NOW}} diff --git a/Tools/dump_github_contributors.ps1 b/Tools/dump_github_contributors.ps1 index 68b1d7f426..193eec4692 100755 --- a/Tools/dump_github_contributors.ps1 +++ b/Tools/dump_github_contributors.ps1 @@ -27,7 +27,7 @@ function load_contribs([string] $repo) } $engineJson = load_contribs("space-wizards/RobustToolbox") -$contentJson = load_contribs("DeltaV-Station/Delta-v-rebase") +$contentJson = load_contribs("Simple-Station/Einstein-Engines") ($engineJson).login + ($contentJson).login ` | select -unique `