Commit graph

44 commits

Author SHA1 Message Date
kokomo123
2986dcc22c
github actions: update checkout actions to v4 (#870) 2024-09-24 23:03:17 +00:00
nodiscc
4d462e38cf
doc/tools: update instructions for deploy key setup 2023-08-22 15:45:19 +02:00
nodiscc
f40a4842ba
tools: switch deployment targets to awesome-selfhosted/awesome-selfhosted(-html) (#63)
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/4
2023-08-22 13:12:34 +00:00
nodiscc
3982f18161
tools/github actions: do not run scheduled jobs on forks of the original repository (#62)
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/60
2023-08-19 11:09:23 +00:00
nodiscc
97f1bad00a
tools/github actions: build: always check out the latest commit of the branch that triggered the workflow (#52)
- without this, the commit that would be checked out would be the one that triggered the workflow
- when called from the needs: keyword in daily-update-metadata.yml, the build would run from the version prior to automatic metadata update/commit back to the repository
2023-07-31 20:48:34 +00:00
nodiscc
7e97f588e2
tools: github actions: fail/display red badge when unmaintained projects are detected
- lower error/warning days threshold, but only for the scheduled/daily check (leave thresholds unchanged for pull requests/pre-build checks)
- error if 365 days without updated, warning if 186 days without updates
- update hecat to v1.1.0 https://github.com/nodiscc/hecat/releases/tag/1.1.0
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/50
2023-07-29 17:57:57 +02:00
nodiscc
eb8c117b90
tools/github actions: allow concurrent runs of dead links/unmaintained projects workflows 2023-07-28 14:25:55 +02:00
nodiscc
11520bd624
tools/github actions: split dead links/unmaintained projects check workflow to separate workflows
- generate 2 separate badges and use them in the project README, CONTRIBUTING, output markdown files
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/49
2023-07-28 14:17:50 +02:00
nodiscc
3bb73247d2
tools/github actions: display the target environment URL on the workflow page 2023-07-28 14:08:10 +02:00
nodiscc
07462d18a3
tools/github actions: build/push markdown/html version in parallel 2023-07-28 14:06:06 +02:00
nodiscc
0a6c1bd8fd
tools/github actions: update-metadata: only run the build job once the update-metadata job completed successfully 2023-07-27 14:44:22 +02:00
nodiscc
f8fc616e56
tools/github actions: make build workflow reusable by other workflows
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_call
- https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/runs/5680604483
- error parsing called workflow: workflow is not reusable as it is missing a on.workflow_call trigger
2023-07-27 14:42:02 +02:00
nodiscc
7412b5ad24
tools/github actions: build and push html/markdown exports after automatic metadata updates
- ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/45
2023-07-27 14:33:54 +02:00
nodiscc
d157f626ce
tools: makefile/github actions: don't call make install target multiple times
- make install must only run manually when the build environment has not been set up yet
2023-07-24 20:36:24 +02:00
nodiscc
6ea9e4507f
finalize automation/CI workflows:
- build markdown/HTML versions, use separate makefile targets/hecat configuration files for each export format/push task
- add non-free.md generation step to markdown export hecat configuration file
- add makefile targets to push exports to https://github.com/awesome-selfhosted/awesome-selfhosted and https://github.com/nodiscc/awesome-selfhosted-html-preview
- install: install sphinx <7 directly using pip since it can't be installed from setup.py https://github.com/sphinx-doc/sphinx/issues/11130
- pin sphinx to version <7, sphinx-design is not compatible with sphinx 7 https://github.com/executablebooks/sphinx-design/issues/130
- add sphinx configuration file
- tools/makefile: monkeypatch furo theme to display build tools and license link in footer (furo/sphinx does not provide a way to customize this https://github.com/pradyunsg/furo/discussions/612)
- fix dependencies between makefile targets
- setup/document SSH deploy keys usage
- each repository requires a different deploy key, trying to add a deploy key to repo B, which has already been added to repo A results in error 'this key already exists'
- set git remote URL to use ssh URIs before push (required to use SSH deploy keys)
- when referencing an environment secret, environment: key must be defined explicitly for the step (https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#referencing-an-environment)
- use a single SSH key file/no ssh-agent, else git push will try to use the first registered key and fail with permission denied when trying to push to the HTML repository
- use variables to identify target repos
- use temporary repositories as push destination
2023-07-24 16:10:43 +02:00
nodiscc
423b418371
tools/github actions: fix concurrency between workflows
- only jobs that are part of the same workflow should not run concurrently
2023-07-22 19:13:03 +02:00
nodiscc
696063534a
tools: github actions: job IDs may only contain alphanumeric characters, '_', and '-'. 2023-07-22 19:06:02 +02:00
nodiscc
316e59bcb7
tools: github actions: run daily dead link checks and unmaintained projects checks in parallel 2023-07-22 19:04:29 +02:00
nodiscc
05ad5ea709
tools/github actions: set job names 2023-07-22 11:34:55 +02:00
nodiscc
986e2dde55
tools/github actions: set workflow names
- https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#name
2023-07-22 11:33:03 +02:00
nodiscc
083b9f0605
tools/github actions: separate workflows for pull requests and build from each commit on master 2023-07-22 11:26:01 +02:00
nodiscc
af5ff2b3e5
tools/github actions: move url checks to a separate workflow
- schedule at same time as the daily metadata update workflow
2023-07-22 11:21:05 +02:00
nodiscc
39d413986c
tools/github actions: rename workflows/update-metadata.yml -> daily-update-metadata.yml 2023-07-22 11:15:22 +02:00
nodiscc
9345d7c883
github actions: update-metadata: allow manually triggering workflow run 2023-06-16 14:03:45 +02:00
nodiscc
c7e09df481
github actions: repository must be checked out before running make url_check
- fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/27
2023-06-16 14:00:50 +02:00
nodiscc
ce136cf477
github actions: update-metadata: run metadata update and URL check jobs in parallel
- ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/27
2023-06-15 23:47:12 +02:00
nodiscc
2745323ec8
tools: github actions: prevent multiple concurrent workflow runs on the same branch/ref
- cancel other pending/in-progress workflows if a new commit is pushed to the ref
- ref. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
2023-01-24 18:04:47 +01:00
nodiscc
0f3b106e12
tools: github actions: always run URL checks last in all workflows
- make errors fatal/exit with code 1 if any checks are unsuccessful
2023-01-24 17:51:03 +01:00
nodiscc
6ad29ab5b8
tools: github actions: run URL checker *after* pushing changes in the scheduled update-metadata workflow
- we want the updates pushed regardless of possible URL check errors
2023-01-24 17:18:29 +01:00
nodiscc
b3f0ff5070
tools: github actions: don't trigger duplicate workflows on pull requests 2023-01-24 17:17:25 +01:00
nodiscc
28005c507e
tools: github actions: add automatic URL checks using hecat/url_check module 2023-01-24 16:55:46 +01:00
nodiscc
8db83e4fd0
tools: github actions: run make awesome_lint/make export explicitly as part of the scheduled update-metadata workflow (#21)
- workaround/closes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/15
2023-01-23 01:10:35 +00:00
nodiscc
5e57632438
tools/github actions: decrease automatic metadata update frequency to daily, 22:22 UTC 2022-08-11 12:54:32 +02:00
nodiscc
87a68b11bc
tools/github actions: schedule automatic metadata update to run hourly
- https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
2022-08-10 16:20:19 +02:00
nodiscc
9abe9f4c6a
tools/github actions: update-metadata: update all metadata, not only missing 2022-08-09 02:05:29 +02:00
nodiscc
14d58f6e9d
tools/github actions: remove unused GITHUB_TOKEN from main CI workflow environment 2022-08-08 22:51:16 +02:00
nodiscc
2eb4deb308
tools/github actions: automate daily metadata update + commit/push changes after update
- automate lint/build on changes
- only run metadata updates from GH actions schedules, not from main CI workflow
- ref. https://github.com/nodiscc/hecat/issues/26
- ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/14
- ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/4
2022-08-08 22:50:27 +02:00
nodiscc
4f8f2ecac8
tools/github actions: set daily metdata update workflow to run at 12:31 UTC, add workflow name 2022-08-08 14:21:47 +02:00
nodiscc
e7d081dd46
tools/github actions: set automatic metadata update workflow to run every monday at 12:01 UTC 2022-08-08 13:53:54 +02:00
nodiscc
5ee7f3bb3f
tools: update hecat@master, set automatic metadata update workflow to run at 11:48 UTC 2022-08-08 13:46:37 +02:00
nodiscc
ea7d306002
tools/github actions: auto-update metadata every monday at 11:45 UTC 2022-08-08 13:44:35 +02:00
nodiscc
064b263264
tools/Makefile/hecat: fix markdown build procedure
- add hecat step configuration file
- update makefile target, rename target build -> export
2022-08-05 22:53:48 +02:00
nodiscc
cd5930fc2a
tools: automatically add github metdata (stargazers_count/udpated_at) to all software entries missing these
- https://docs.github.com/en/actions/security-guides/automatic-token-authentication
2022-06-05 19:37:51 +02:00
nodiscc
9e0b0dec71 add basic markdown list build process
- rebuild markdown README.md and check for differences against the original
- add build steps to makefile so it can be run locally
- call make from Github actions so it runs automatically on commits/pull requests
2022-04-29 15:58:53 +02:00