Skip to content

Commit 5fed83d

Browse files
Merge remote-tracking branch 'origin/main' into maintenance
2 parents 220381a + 1fc4c24 commit 5fed83d

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Sync maintenance with main
2+
3+
# Merges main into maintenance on every push to main, so maintenance never falls behind regardless of how a change landed on main.
4+
5+
on:
6+
push:
7+
branches: [main]
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
13+
jobs:
14+
sync:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v7
18+
with:
19+
ref: maintenance
20+
fetch-depth: 0
21+
22+
- name: Merge main into maintenance
23+
id: merge
24+
run: |
25+
git config user.name "github-actions[bot]"
26+
git config user.email "github-actions[bot]@users.noreply.github.com"
27+
git fetch origin main
28+
if git merge origin/main --no-edit; then
29+
git push origin maintenance
30+
else
31+
git merge --abort
32+
echo "conflict=true" >> "$GITHUB_OUTPUT"
33+
exit 1
34+
fi
35+
36+
- name: Open an issue on conflict
37+
if: failure() && steps.merge.outputs.conflict == 'true'
38+
uses: actions/github-script@v8
39+
with:
40+
script: |
41+
await github.rest.issues.create({
42+
owner: context.repo.owner,
43+
repo: context.repo.repo,
44+
title: `maintenance is out of sync with main (${context.sha.slice(0, 7)})`,
45+
body: `Merging \`main\` into \`maintenance\` hit a conflict and needs to be resolved by hand:\n\n\`\`\`\ngit checkout maintenance\ngit merge origin/main\n# resolve conflicts\ngit push origin maintenance\n\`\`\``,
46+
});

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Once you have the repository locally on your computer, there are a couple of pla
3131

3232
- **name** is the name of your theme.
3333
- **version** is the version of your theme.
34-
- **minAppVersion** should only be changed as you add new CSS from Obsidian updates.
34+
- **minAppVersion** should only be changed as you add new CSS from Obsidian installer updates.
3535
- **author** is your name.
3636
- **fundingUrl** is an optional link where users can support your work, for example a Ko-fi page.
3737
- **authorUrl** is an optional link to your website or profile.

0 commit comments

Comments
 (0)