Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
005a0bce
Commit
005a0bce
authored
2 years ago
by
AnimeGitB
Browse files
Options
Downloads
Patches
Plain Diff
Add version increments to lint branch
parent
49aed23f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/lint_commit.yml
+23
-5
23 additions, 5 deletions
.github/workflows/lint_commit.yml
with
23 additions
and
5 deletions
.github/workflows/lint_commit.yml
+
23
−
5
View file @
005a0bce
...
...
@@ -28,18 +28,36 @@ jobs:
-
run
:
git config --global user.name "github-actions"
-
run
:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
-
run
:
git stash
# - name: Remove Whitespace Linter's LintRatchet ref
# run: git branch -D LintRatchet
# - name: Fetch this repo's LintRatchet branch
# run: git fetch origin LintRatchet:LintRatchet
-
run
:
git checkout LintRatchet
# - run: git merge development
-
run
:
git reset --hard development
-
run
:
git stash pop ||
true
-
name
:
Commit any whitespace changes
run
:
git add -u && git commit -m 'Fix whitespace [skip actions]' ||
true
-
name
:
Update Languages
run
:
python manage_languages.py -u
-
name
:
Commit any language changes
run
:
git add -u && git commit -m 'Update languages [skip actions]' ||
true
-
run
:
git push --set-upstream --force origin LintRatchet
-
name
:
Bump version to a release
# a.b.c-dev -> a.b.c
# If any breaking changes, a.b.c-dev -> a.(b+1).0
run
:
|
export BREAKING=`git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" --grep="BREAKING"`
if [[ $BREAKING ]]; then export NEXT_VERSION=`sed -nr "s/^version = '(.*\.)([0-9]+)\.[0-9]+(-dev)?'"'/echo "\1$((\2+1)).0"/ep' build.gradle`; else export NEXT_VERSION=`sed -nr "s/^version = '(.*)-dev'/\1/p" build.gradle`; fi
export CHANGELOG=`git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s"`
perl -pi -e "s/version = '.*'/version = '$NEXT_VERSION'/g" build.gradle
git add build.gradle && git commit -m "Version $NEXT_VERSION" -m "$CHANGELOG"
-
name
:
Bump version to next dev
# a.b.c -> a.b.(c+1)-dev
run
:
|
export NEXT_VERSION=`sed -nr "s/^version = '(.*)([0-9]+)'"'/echo "\1$((\2+1))-dev"/ep' build.gradle`
perl -pi -e "s/version = '.*'/version = '$NEXT_VERSION'/g" build.gradle
git add build.gradle && git commit -m "Version $NEXT_VERSION [skip actions]"
-
name
:
Force-push changes to LintRatchet
run
:
git push --set-upstream --force origin LintRatchet
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment