Skip to content
Merged
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
36 changes: 36 additions & 0 deletions .github/workflows/sync-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Sync install.sh to gh-pages

on:
push:
branches:
- main
paths:
- install.sh
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: Copy install.sh from main
run: git show origin/main:install.sh > install.sh

- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add install.sh
if git diff --cached --quiet; then
echo "No changes."
else
git commit -m "chore: sync install.sh from main [skip ci]"
git push origin gh-pages
fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
Requires Docker. Installs and starts Expensave interactively:

```bash
curl -fsSL https://raw.githubusercontent.com/algirdasc/expensave/main/install.sh | sudo bash
curl -fsSL https://expensave.app/install.sh | sudo bash
```

The installer will:
Expand Down
Loading