publish pipeline now commits changelog, READY FOR STABLE (#45461)

feat: publish pipeline now commits changelog
This commit is contained in:
Fildrance 2026-08-20 19:52:17 +00:00 • committed by GitHub
parent dd010d8b3f
commit 67030315c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 1 deletions

View file

@ -35,7 +35,7 @@ jobs:
- name: Update changelog
run: |
dotnet tool install --global SpaceWizards.ChangelogTool --version 1.0.2
dotnet tool install --global SpaceWizards.ChangelogTool --version 1.0.7
ss14-changelog update -d Resources/Changelog
env:
REPO: ${{ github.repository }}

View file

@ -24,6 +24,8 @@ jobs:
- uses: actions/checkout@v7
with:
submodules: 'recursive'
fetch-depth: 0
filter: blob:none
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
@ -37,6 +39,41 @@ jobs:
- name: Install dependencies
run: dotnet restore
- name: Update changelog
run: |
dotnet tool install --global SpaceWizards.ChangelogTool --version 1.0.7
ss14-changelog update -d Resources/Changelog
env:
REPO: ${{ github.repository }}
BRANCH: stable
CHANGELOG_REPO_PATH: Resources/Changelog
EXTRA_CATEGORIES: Admin,Maps,Rules
GITHUB_TOKEN: ${{ secrets.CL_ACCESS_TOKEN }}
- name: Commit and push changelog changes
id: changelog
run: |
git config user.name "Space-Wizards-Bot"
git config user.email "support@spacestation14.com"
if [ -n "$(git status --porcelain Resources/Changelog)" ]; then
git add Resources/Changelog
git commit -m "Update changelog"
git remote set-url origin "https://x-access-token:${CL_ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push origin "HEAD:${GITHUB_REF_NAME}"
echo "committed=true" >> "$GITHUB_OUTPUT"
fi
env:
CL_ACCESS_TOKEN: ${{ secrets.CL_ACCESS_TOKEN }}
# - name: Create PR from stable to master
# if: steps.changelog.outputs.committed == 'true'
# env:
# GH_TOKEN: ${{ secrets.CL_ACCESS_TOKEN }}
# run: |
# if [ -z "$(gh pr list --repo "$GITHUB_REPOSITORY" --head stable --base master --state open --json number --jq '.[].number')" ]; then
# gh pr create --repo "$GITHUB_REPOSITORY" --base master --head stable --title "Update changelog" --body "Sync from release to master."
# fi
- name: Build Packaging
run: dotnet build Content.Packaging --configuration Release --no-restore /m