mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Update Actions (#445)
Bc of branch protection rules the default actions token can't push to `main`, which screws up a lot. So this PR uses a PAT i generated to push schemas instead bc I can bypass those restrictions.
This commit is contained in:
commit
078fc2ce3b
1
.github/workflows/debug_build.yml
vendored
1
.github/workflows/debug_build.yml
vendored
@ -23,3 +23,4 @@ jobs:
|
||||
uses: './.github/workflows/update_schemas.yml'
|
||||
with:
|
||||
artifact_name: NewHorizons-Schemas-Debug
|
||||
secrets: inherit
|
||||
|
||||
1
.github/workflows/release_build.yml
vendored
1
.github/workflows/release_build.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
||||
uses: ./.github/workflows/update_schemas.yml
|
||||
with:
|
||||
artifact_name: NewHorizons-Schemas-Release
|
||||
secrets: inherit
|
||||
Update_Docs:
|
||||
name: 'Update Docs'
|
||||
needs: Build
|
||||
|
||||
8
.github/workflows/update_schemas.yml
vendored
8
.github/workflows/update_schemas.yml
vendored
@ -19,6 +19,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.SCHEMAS_TOKEN }}
|
||||
|
||||
- name: Download Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
@ -28,13 +30,13 @@ jobs:
|
||||
|
||||
- name: Commit Schemas
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git config --local user.email "bwc9876@gmail.com"
|
||||
git config --local user.name "Ben C"
|
||||
git add NewHorizons/Schemas/**
|
||||
git commit -m "Updated Schemas"
|
||||
|
||||
- name: Push Schemas
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.github_token }}
|
||||
github_token: ${{ secrets.SCHEMAS_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
||||
2
NewHorizons/External/Configs/PlanetConfig.cs
vendored
2
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -11,7 +11,7 @@ using Logger = NewHorizons.Utility.Logger;
|
||||
namespace NewHorizons.External.Configs
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes a body to generate
|
||||
/// Describes a celestial body to generate
|
||||
/// </summary>
|
||||
[JsonObject(Title = "Celestial Body")]
|
||||
public class PlanetConfig
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Celestial Body Schema",
|
||||
"type": "object",
|
||||
"description": "Describes a body to generate",
|
||||
"description": "Describes a celestial body to generate",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user