From 1100562e29f6476448b656dbddd4cf22505523f6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 10 Mar 2024 14:59:14 +0100 Subject: Move back to JBMAFP --- .../2023-05-27-cronjobs-github-with-actions.md | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 _posts/notes/2023-05-27-cronjobs-github-with-actions.md (limited to '_posts/notes/2023-05-27-cronjobs-github-with-actions.md') diff --git a/_posts/notes/2023-05-27-cronjobs-github-with-actions.md b/_posts/notes/2023-05-27-cronjobs-github-with-actions.md deleted file mode 100644 index 3fd2fdc..0000000 --- a/_posts/notes/2023-05-27-cronjobs-github-with-actions.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: "Cronjobs on Github with Github Actions" -permalink: /cronjobs-github-with-actions.html -date: 2023-05-27T00:35:36+02:00 -layout: post -type: note -draft: false -tags: [github] ---- - -In the root of your repository create a folder `.github/workflows` and in that -folder create a file a file `cron.yaml`. This file can be named whatever you -wish. But it has to be a `yaml` file. - -File below (`.github/workflows/cron.yaml`) describes an action that will trigger -every six hours and it will curl example.com. - -However. Be sure that you have enough credits. Free account is not that generous -with the minutes they give you for free. Check more about GitHub Actions usage -on their website https://docs.github.com/en/actions. - -```yaml -# .github/workflows/cron.yaml -name: Do a curl every 6 hours -on: - schedule: - - cron: '0 */6 * * *' -jobs: - cron: - runs-on: ubuntu-latest - steps: - - name: Call some url - run: curl 'https://example.com' -``` -- cgit v1.2.3