mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
publish pipeline now commits changelog, READY FOR STABLE (#45461)
feat: publish pipeline now commits changelog
This commit is contained in:
parent
dd010d8b3f
commit
67030315c5
2 changed files with 38 additions and 1 deletions
2
.github/workflows/publish-testing.yml
vendored
2
.github/workflows/publish-testing.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
37
.github/workflows/publish.yml
vendored
37
.github/workflows/publish.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue