Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .discourse-compatibility
Empty file.
29 changes: 29 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Bump about.json Version

on:
push:
branches:
- main # or 'master' or any branch you want

jobs:
bump-version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Bump version in about.json
run: |
FILE="about.json"
VERSION=$(jq -r '.version' $FILE)
if [[ "$VERSION" == "null" ]]; then VERSION="0.0.0"; fi
NEW_VERSION=$(echo $VERSION | awk -F. -v OFS=. '{$NF+=1; print}')
jq --arg v "$NEW_VERSION" '.version = $v' $FILE > tmp.json && mv tmp.json $FILE
git add $FILE
git commit -m "chore: bump version to $NEW_VERSION" || echo "No changes to commit"
git push
2 changes: 2 additions & 0 deletions .streerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--print-width=100
--plugins=plugin/trailing_comma,plugin/disable_auto_ternary
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ GEM
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
ast (2.4.3)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.9)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.2)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
drb (2.2.3)
Expand All @@ -35,21 +35,21 @@ GEM
prettier_print (1.2.1)
prism (1.4.0)
racc (1.8.1)
rack (3.1.15)
rack (3.1.16)
rainbow (3.1.1)
regexp_parser (2.10.0)
rubocop (1.75.8)
rubocop (1.76.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.44.0, < 2.0)
rubocop-ast (>= 1.45.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.44.1)
rubocop-ast (1.45.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-capybara (2.22.1)
Expand Down
10 changes: 4 additions & 6 deletions about.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"license_url": "https://github.com/pfaffman/discourse-custom-homepage-for-groups/blob/main/LICENSE",
"about_url": "https://meta.discourse.org/t/custom-homepage-for-groups/199623",
"authors": "pfaffman",
"version": "0.1.0",
"theme_version": null,
"minimum_discourse_version": null,
"maximum_discourse_version": null,
"assets": {
},
"color_schemes": {
},
"modifiers": {
},
"assets": {},
"color_schemes": {},
"modifiers": {},
"learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
}
Loading
Loading