Skip to content

Commit

Permalink
syntax testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Staubgeborener committed Mar 31, 2024
1 parent b3322c0 commit 8be6d74
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/inotify_version.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Get latest inotify version
on:
<<<<<<< Updated upstream
push:
branches:
- docs
Expand All @@ -8,11 +9,19 @@ on:
workflow_dispatch:
permissions:
contents: write
=======
schedule:
- cron: "*/1 * * * *"
workflow_dispatch:
>>>>>>> Stashed changes

jobs:
update_version:
runs-on: ubuntu-latest
<<<<<<< Updated upstream

=======
>>>>>>> Stashed changes
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -21,13 +30,23 @@ jobs:
curl -s https://api.github.com/repos/inotify-tools/inotify-tools/releases/latest \
| grep "tag_name" \
| sed -E 's/.*"([^"]+)".*/\1/' \
<<<<<<< Updated upstream
> docs/inotify_version
- name: Add inotify_version to Git index
run: |
git add docs/inotify_version
=======
> inotify_version
>>>>>>> Stashed changes
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
<<<<<<< Updated upstream
git commit -m "Update Inotify version"
git push
=======
git add inotify_version
git commit -m "Update Inotify version"
git push
>>>>>>> Stashed changes
2 changes: 1 addition & 1 deletion docs/automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This tells cron to run the backup script every 4 hours. You can find other cron
To install the package run ```sudo apt-get install inotify-tools``` in your terminal.

Please check with `inotifywait -h` if you are using the latest release {% include "inotify_version" %}. If this is not the case or if you encounter any problems (error messages, service not running correctly) or an update with `apt` does not work, follow [these instructions](https://gist.github.com/Staubgeborener/0455c557e14bc20dd26713f2c8256906){:target="_blank"}.

{! include "inotify_version" !} `{! include "inotify_version" !}` {% include "inotify_version" %} `{% include "inotify_version" %}`
2. Create the service file in systemd
```shell
sudo nano /etc/systemd/system/klipper-backup-filewatch.service
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ plugins:
css_style:
width: "50%"
height: 18.172vw;
- markdown-include:
base_path: docs

markdown_extensions:
- abbr
Expand Down

0 comments on commit 8be6d74

Please sign in to comment.