diff --git a/.github/workflows/debug_build.yml b/.github/workflows/debug_build.yml index 587cc772..e69d65c4 100644 --- a/.github/workflows/debug_build.yml +++ b/.github/workflows/debug_build.yml @@ -23,3 +23,4 @@ jobs: uses: './.github/workflows/update_schemas.yml' with: artifact_name: NewHorizons-Schemas-Debug + secrets: inherit diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 57060b79..f59e71b4 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -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 diff --git a/.github/workflows/update_schemas.yml b/.github/workflows/update_schemas.yml index 35330d9f..6bbf8da7 100644 --- a/.github/workflows/update_schemas.yml +++ b/.github/workflows/update_schemas.yml @@ -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 }} diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index 3c649ebd..ef36bca5 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -11,7 +11,7 @@ using Logger = NewHorizons.Utility.Logger; namespace NewHorizons.External.Configs { /// - /// Describes a body to generate + /// Describes a celestial body to generate /// [JsonObject(Title = "Celestial Body")] public class PlanetConfig diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index 485150b4..f84505df 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -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"