From 8be6d74f35c8e13611cf37640b477361899d44ce Mon Sep 17 00:00:00 2001 From: Staubgeborener Date: Sun, 31 Mar 2024 13:31:22 +0200 Subject: [PATCH] syntax testing --- .github/workflows/inotify_version.yml | 19 +++++++++++++++++++ docs/automation.md | 2 +- mkdocs.yml | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/inotify_version.yml b/.github/workflows/inotify_version.yml index cf8195c..2c98cc5 100644 --- a/.github/workflows/inotify_version.yml +++ b/.github/workflows/inotify_version.yml @@ -1,5 +1,6 @@ name: Get latest inotify version on: +<<<<<<< Updated upstream push: branches: - docs @@ -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 @@ -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 "github-actions@example.com" 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 diff --git a/docs/automation.md b/docs/automation.md index a010241..600c037 100644 --- a/docs/automation.md +++ b/docs/automation.md @@ -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 diff --git a/mkdocs.yml b/mkdocs.yml index 3793438..68d96fc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -53,6 +53,8 @@ plugins: css_style: width: "50%" height: 18.172vw; + - markdown-include: + base_path: docs markdown_extensions: - abbr