-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3322c0
commit 8be6d74
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 "[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters