Commit Graph

47 Commits

Author SHA1 Message Date
dependabot[bot]
b213040c72 Bump stefanzweifel/git-auto-commit-action from 6 to 7 (#525)
See https://github.com/stefanzweifel/git-auto-commit-action/releases/tag/v7.0.0.
2025-10-17 23:34:10 +02:00
dependabot[bot]
70b948afcd Bump actions/setup-python from 5 to 6 (#510)
See https://github.com/actions/setup-python/releases/tag/v6.0.0.
2025-09-08 14:14:20 +02:00
dependabot[bot]
eabecf9676 Bump actions/checkout from 4 to 5 (#499)
See https://github.com/actions/checkout/releases/tag/v5.0.0.
2025-08-18 09:15:07 +02:00
Marc Wrobel
aa88b806af Rename scripts (#463) 2025-07-12 09:25:23 +02:00
Marc Wrobel
d77b5a8e7e Fix gh command in clear-cache.yml 2025-06-30 22:43:22 +02:00
Marc Wrobel
c78d1fe2b5 Refactor scripts arguments handling (#456)
- remove the use of environment variables to get directory paths,
- make use of arguments / argparse instead of environment variables in `update.py` and `report.py`,
- automatically guess the data directory in `latest.py` based on the script's location,
- propagate log level to auto scripts,
- move `list_configs_from_argv` from `endoflife` module to `releasedata` module,
- use `list_products` in `latest.py` to load the product's frontmatters.
2025-06-28 19:05:07 +02:00
dependabot[bot]
95925edba8 Bump stefanzweifel/git-auto-commit-action from 5 to 6 (#453)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 5 to 6.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-28 14:15:41 +02:00
Marc Wrobel
dd1620cb46 Change dependabot frequency from monthly to weekly (#452) 2025-06-28 14:02:17 +02:00
Marc Wrobel
db5ad5b64b Always save cache (#451)
Always save cache, even if one of the scripts returned an error.

Also use a workflow to clear the cache instead of relying on josStorer/get-current-time@v2.
2025-06-28 13:30:57 +02:00
Marc Wrobel
3beb0f6e34 Respect HTTP Cache-Control header if available (#450)
Allow stale responses in case of error in order to reduce the number of temporary errors.

Note that the cache will be reset on the first build of every week in any cases, see .github/workflows/update.yml.
2025-06-28 12:57:41 +02:00
dependabot[bot]
0bd078232f Bump pre-commit/action from 3.0.0 to 3.0.1 (#322)
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/pre-commit/action/releases)
- [Commits](https://github.com/pre-commit/action/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: pre-commit/action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-02 08:22:23 +01:00
Marc Wrobel
9cf243a10e Fix scripts requiring rendering pages with javascript (#310)
Replace request_html by playwright, as request_html, as it is [not maintained anymore](https://pypi.org/project/requests-html/) and scripts using it, such as artifactory.py, started to fail.
2024-02-16 23:13:42 +01:00
dependabot[bot]
9ff98212fc Bump actions/cache from 3 to 4 (#291)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 20:55:30 +01:00
Marc Wrobel
727c1c7367 Do not checkout the website repository twice in update.yml (#271)
This is good because checking out a non-existing branch:

- takes nearly 30s, and most PR does not have a branch with the same name declared in both release-data and endoflife.date repository,
- pollute workflow summary with cryptic error messages.

So overall this save a lot of time and is cleaner.
2023-12-31 17:11:45 +01:00
Marc Wrobel
7a97c87b3b Refactor latest.py and update.py (#270)
- create new gha.py module,
- improve GitHub workflow commands (GITHUB_OUTPUT, GITHUB_STEP_SUMMARY) interactions,
- improve logging,
- split update.py into smaller functions.
2023-12-31 00:45:30 +01:00
dependabot[bot]
5dd1872edc Bump actions/setup-python from 4 to 5 (#264)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-30 00:18:49 +01:00
Marc Wrobel
86860715ab Rewrite update.py to Python (#263)
Reasons were:

- one language make it easier for maintenance,
- workflow simplification,
- not stopping when a script fails anymore (it's better to have a partial update than nothing),
- use `GITHUB_OUTPUT` instead of the deprecated `set-output` command,
- display a workflow summary with statistics about scripts and information about updated products.

The commit message is not as good as it used to be, but it makes the diff process agnostic from the file format (will be needed soon when it will change), and it handles versions updates / removal, which was not supported by the previous script.
2023-12-30 00:07:22 +01:00
Marc Wrobel
62e466a841 Cleanup and fix update.rb (#261)
Cleanup unused code in update.rb: all methods are now handled by custom scripts. This should fix errors encountered in update.yml workflow (such as https://github.com/endoflife-date/release-data/actions/runs/7279373761) since the dependency to psych has been removed.

This also reformat and update the update.yml workflow so that two workflows targeting the same branch cannot run concurrently. This change has been done because in such cases the last one always fail (changes cannot be commited because the previous workflow already update the branch).

Fixes #260.
2023-12-22 23:13:03 +01:00
Marc Wrobel
9dfd8f4f6e Update lint workflow to only trigger linting once on PRs 2023-11-26 21:30:10 +01:00
Hugo van Kemenade
8870ab5e28 Lint on GitHub Actions (#196)
- Lint with pre-commit on GitHub Actions,
- Add some handy pre-hooks,
- Configure Ruff lint rules (https://github.com/astral-sh/ruff).

---------

Co-authored-by: Marc Wrobel <marc.wrobel@gmail.com>
2023-11-26 21:08:12 +01:00
Hugo van Kemenade
ce8e53213e Only deploy for upstream (#186) 2023-11-26 13:29:27 +01:00
dependabot[bot]
2362c4f8c0 Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#169)
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 11:14:41 +01:00
dependabot[bot]
78281fe07a Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-01 09:34:14 +02:00
Nemo
ed3d139109 [dep] Auto upgrade via Dependabot (#104)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-06-08 06:16:40 +00:00
Marc Wrobel
adb7cbfdeb [github_releases] Add automation (closes #34)
This script is using the GitHub CLI with the GraphQL API in order to retrieve releases. The reasons are:

- using 'gh release list' does not return all the releases
- using the API, directly or via GitHub CLI, is slow, produces a lot of 502 errors, and is harder due to pagination.
- using the GraphQL API directly is hard due to pagination.
- using a library, such as graphql-python, is sightly harder than using the GitHub CLI (and still requires a GITHUB_TOKEN).

Access to the GitHub token is required when using GitHub CLI, hence the update.yml workflow update.
2023-03-03 09:24:02 +01:00
Marc Wrobel
082b165d5d Add Java automation
Fetch Java versions with their dates from https://www.java.com/releases/.

This script is using a new dependency: requests-html (https://requests-html.kennethreitz.org/). This is because https://www.java.com/releases/ needs JavaScript to render correctly. And for this to work requests-html automatically downloads Chromium because of its dependency to pyppeteer.

Chromium is downloaded into PYPPETEER_HOME, so the workflow has been modified to set this directory as a subdirectory of ~/.cache. Note that declaring the same environment variable from the python script does not work.
2023-01-03 18:23:19 +01:00
Marc Wrobel
a061e41789 Minimize cache size (closes #53)
Add --depth=1 to the git fetch command to minimize the git repositories size. A test showed that this reduced the cache size from 7507 MB to 962 MB.
2023-01-03 09:03:36 +00:00
Nemo
44e95ac39a Update trigger-deploy.yml 2022-12-20 15:09:41 +05:30
Nemo
e485d315f0 [ci] Fix secret usage 2022-12-20 15:07:08 +05:30
Nemo
1745448707 [ci] Trigger website deploy on new release-data build
This triggers a new build, but only on commits to the main branch.
2022-12-20 12:07:32 +05:30
Nemo
e018736fbe [distrowatch] Support running single product 2022-07-13 13:21:53 +05:30
Nemo
32450c162c Add a debugging workflow to allow testing
If you push a branch to the main repo, and a branch here with the same
name, then the update script here will use the same branch name instead
of using `main`. This way, we can keep 2 branches in sync and then merge
them.

If a branch does not exist, we'll fallback to cloning master instead
2022-07-10 15:44:47 +05:30
Nemo
5962146a16 [distrowatch] Distrowatch update script 2022-07-10 15:44:09 +05:30
Nemo
fc39472416 [pangp] Add Palo Alto Networks GlobalProtect App 2022-05-30 15:31:31 +05:30
Nemo
869a866e7e Switch haproxy to all changelogs 2022-05-24 18:09:14 +05:30
Nemo
f3e9a2c7b2 Fix commit message 2022-05-24 15:28:46 +05:30
Nemo
6a08386585 Fix directories 2022-05-24 15:14:14 +05:30
Nemo
a207d5c30e [ci] Add manual trigger to update data 2022-05-18 15:35:50 +05:30
Nemo
8997487f42 Script to fetch unrealircd releases (#4)
unrealircd: 6.0.3
elasticsearch: 8.2.0
laravel: 8.83.11, 9.11.0
2022-05-03 16:23:53 +00:00
Nemo
2724ebbbc0 Closes #3 2022-04-26 20:19:49 +05:30
Nemo
f9ce28d487 Update update.yml 2022-04-21 07:38:32 +00:00
Nemo
3b4cca9faf Update update.yml 2022-03-29 12:36:08 +05:30
Nemo
6b0ef0a19e Fix clone ref for website repo 2022-03-29 12:34:37 +05:30
Nemo
192bc258ea Cleanup releases into some standard format. (#2) 2022-03-28 08:08:41 +00:00
Nemo
034e407dfe Only run on schedule 2022-03-28 07:17:23 +00:00
Nemo
0cbf22bf9f Initial Automation 2022-03-28 07:17:21 +00:00
Nemo
6b082aac17 Initial commit for workflow 2022-03-24 15:26:07 +05:30