From 7c2a08ee249ef3ff045187f07d8b57510b220fa2 Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:09:34 +0200 Subject: [PATCH 01/10] Add github action: check for redmine releases --- .github/workflows/check-for-releases.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/check-for-releases.yml diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml new file mode 100644 index 00000000..9f2acf84 --- /dev/null +++ b/.github/workflows/check-for-releases.yml @@ -0,0 +1,20 @@ +name: Check for new Redmine releases + +on: + schedule: + # Run this Action at every 5th minute + - cron: "*/5 * * * *" + +jobs: + redmine-release: + runs-on: ubuntu-latest + steps: + - uses: git-for-windows/rss-to-issues@v0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + feed: https://www.redmine.org/projects/redmine/news.atom + prefix: "Update tests: " + character-limit: 255 + dry-run: true + max-age: 100h + labels: "enhancement" From 8df02bb95a8769e42c8eda1c00f114a4982c6a2f Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:16:06 +0200 Subject: [PATCH 02/10] set max-age to 4 weeks --- .github/workflows/check-for-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 9f2acf84..e343abac 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -16,5 +16,5 @@ jobs: prefix: "Update tests: " character-limit: 255 dry-run: true - max-age: 100h + max-age: 511h labels: "enhancement" From 88847cb520dbd508f9b451046cbf04c66539719e Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:23:27 +0200 Subject: [PATCH 03/10] Allow to dispatch the action --- .github/workflows/check-for-releases.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index e343abac..4249f3df 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -1,6 +1,7 @@ name: Check for new Redmine releases on: + workflow_dispatch: schedule: # Run this Action at every 5th minute - cron: "*/5 * * * *" From a808314d2d23a6d9c59099fc927a295c5f32baff Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:26:23 +0200 Subject: [PATCH 04/10] trigger workflow every 2 minutes --- .github/workflows/check-for-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 4249f3df..504c1dda 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: schedule: # Run this Action at every 5th minute - - cron: "*/5 * * * *" + - cron: "*/2 * * * *" jobs: redmine-release: From 5826935212fe1833baf94e7a16e0e91013b413ab Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:28:20 +0200 Subject: [PATCH 05/10] Add names in workflow --- .github/workflows/check-for-releases.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 504c1dda..d0600e82 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -8,9 +8,12 @@ on: jobs: redmine-release: + name: Check for Redmine updates runs-on: ubuntu-latest + steps: - - uses: git-for-windows/rss-to-issues@v0 + - name: Check for updates + uses: git-for-windows/rss-to-issues@v0 with: github-token: ${{ secrets.GITHUB_TOKEN }} feed: https://www.redmine.org/projects/redmine/news.atom From 3f78f9b28fafa858db74554df169723ed6cad16f Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:32:10 +0200 Subject: [PATCH 06/10] remove character-limit --- .github/workflows/check-for-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index d0600e82..0135398a 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -18,7 +18,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} feed: https://www.redmine.org/projects/redmine/news.atom prefix: "Update tests: " - character-limit: 255 + #character-limit: 255 dry-run: true max-age: 511h labels: "enhancement" From 676bce283e1c1a1c098caae786919476a07eb576 Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:34:45 +0200 Subject: [PATCH 07/10] deactivate dry-run --- .github/workflows/check-for-releases.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 0135398a..e541320c 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -17,8 +17,8 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} feed: https://www.redmine.org/projects/redmine/news.atom - prefix: "Update tests: " + prefix: "Update the Behat tests: " #character-limit: 255 - dry-run: true + dry-run: false max-age: 511h labels: "enhancement" From d43b17bbb06af1ae4cb90a8ad61cf6ff25f04e4d Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:40:57 +0200 Subject: [PATCH 08/10] run test with more feed items, adjust cron schedule --- .github/workflows/check-for-releases.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index e541320c..9e9c0e22 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -3,8 +3,8 @@ name: Check for new Redmine releases on: workflow_dispatch: schedule: - # Run this Action at every 5th minute - - cron: "*/2 * * * *" + # Run this Action every day a 5:35am UTC + - cron: "37 5 * * *" jobs: redmine-release: @@ -20,5 +20,5 @@ jobs: prefix: "Update the Behat tests: " #character-limit: 255 dry-run: false - max-age: 511h + max-age: 3360h labels: "enhancement" From b77180d0e5f29237a0855d955b5bad6d532a7237 Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 26 Jun 2024 16:42:35 +0200 Subject: [PATCH 09/10] set max-age to 72h --- .github/workflows/check-for-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 9e9c0e22..45f6537d 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -20,5 +20,5 @@ jobs: prefix: "Update the Behat tests: " #character-limit: 255 dry-run: false - max-age: 3360h + max-age: 72h labels: "enhancement" From 81ca9999e2ab3d278b754fe2591c8eb8595aa18b Mon Sep 17 00:00:00 2001 From: Artur Weigandt Date: Wed, 26 Jun 2024 19:21:01 +0200 Subject: [PATCH 10/10] Update .github/workflows/check-for-releases.yml Co-authored-by: Kevin Saliou --- .github/workflows/check-for-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-for-releases.yml b/.github/workflows/check-for-releases.yml index 45f6537d..bcc5a35d 100644 --- a/.github/workflows/check-for-releases.yml +++ b/.github/workflows/check-for-releases.yml @@ -3,7 +3,7 @@ name: Check for new Redmine releases on: workflow_dispatch: schedule: - # Run this Action every day a 5:35am UTC + # Run this Action every day a 5:37am UTC - cron: "37 5 * * *" jobs: