Skip to content

Update inotify_version.yml #1

Update inotify_version.yml

Update inotify_version.yml #1

name: Get latest inotify version
on:
push:
branches:
- docs
schedule:
- cron: "*/1 * * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
update_version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get latest Inotify version
run: |
curl -s https://api.github.com/repos/inotify-tools/inotify-tools/releases/latest \
| grep "tag_name" \
| sed -E 's/.*"([^"]+)".*/\1/' \
> inotify_version
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add inotify_version
git commit -m "Update Inotify version"
git push