mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 14:20:35 +08:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Bump Manifest Version
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
bump-manifest-version:
|
|
if: ${{ github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message, '[skip ci]') }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Bump manifest version
|
|
run: node scripts/bump-manifest-version.mjs
|
|
|
|
- name: Commit version bump
|
|
run: |
|
|
if git diff --quiet -- manifest.json; then
|
|
echo "manifest.json version did not change."
|
|
exit 0
|
|
fi
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add manifest.json
|
|
git commit -m "chore: bump manifest version [skip ci]"
|
|
git push
|