From c7c376a12293fc1aadcaf20a4a17c69408a53054 Mon Sep 17 00:00:00 2001 From: Max Dallabetta Date: Fri, 19 Apr 2024 18:17:11 +0200 Subject: [PATCH 1/4] add approval to run `documentation.yaml` on forks --- .github/workflows/documentation.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 1c7f3fbb3..47900be38 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -11,14 +11,12 @@ on: - src/fundus/publishers/** - scripts/generate_tables.py - pull_request: + # https://github.com/stefanzweifel/git-auto-commit-action/issues/211#issuecomment-1100105924 + pull_request_target: paths: - src/fundus/publishers/** - scripts/generate_tables.py - # https://github.com/stefanzweifel/git-auto-commit-action/issues/211#issuecomment-1100105924 - pull_request_target: - workflow_dispatch: env: @@ -31,7 +29,17 @@ env: }} jobs: + require_permission_for_fork: + name: Require permission to run on fork + if: " github.event.pull_request.head.repo.fork " + runs-on: ubuntu-latest + + environment: + name: documentation + supported_publishers: + needs: + - require_permission_for_fork runs-on: ubuntu-latest permissions: From 39238f49b8463bdfd71630d20d6c4261aaab0dbc Mon Sep 17 00:00:00 2001 From: Max Dallabetta Date: Fri, 19 Apr 2024 18:19:23 +0200 Subject: [PATCH 2/4] this should run without issues --- src/fundus/publishers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fundus/publishers/__init__.py b/src/fundus/publishers/__init__.py index 7cb519e51..ecc072db2 100644 --- a/src/fundus/publishers/__init__.py +++ b/src/fundus/publishers/__init__.py @@ -17,4 +17,4 @@ class PublisherCollection(metaclass=PublisherCollectionMeta): uk = UK fr = FR ch = CH - lt = LT + # lt = LT From f3acb9021b6602c6859a1d6b0d0a111158292479 Mon Sep 17 00:00:00 2001 From: MaxDall Date: Fri, 19 Apr 2024 16:19:57 +0000 Subject: [PATCH 3/4] Update documentation from @ 24da82146e8dc89cdfefc96ea036944627e4048d --- docs/supported_publishers.md | 46 ++++++------------------------------ 1 file changed, 7 insertions(+), 39 deletions(-) diff --git a/docs/supported_publishers.md b/docs/supported_publishers.md index 23073c830..c40700ca2 100644 --- a/docs/supported_publishers.md +++ b/docs/supported_publishers.md @@ -7,7 +7,7 @@ Class                         - Source                                                                     + Source                                                               URL                                                     Missing Attributes Additional Attributes     @@ -41,7 +41,7 @@ Class                         - Source                                                                     + Source                                                               URL                                                     Missing Attributes Additional Attributes     @@ -75,7 +75,7 @@ Class                         - Source                                                                     + Source                                                               URL                                                     Missing Attributes Additional Attributes     @@ -379,7 +379,7 @@ Class                         - Source                                                                     + Source                                                               URL                                                     Missing Attributes Additional Attributes     @@ -405,45 +405,13 @@ -## LT-Publishers - - - - - - - - - - - - - - - - - - - - -
Class                        Source                                                                    URL                                                    Missing AttributesAdditional Attributes    
- LRT - -
Lithuanian National Radio and Television
-
- - www.lrt.lt - -   
- - ## NA-Publishers - + @@ -477,7 +445,7 @@ - + @@ -554,7 +522,7 @@ - + From cdb9c910fb6a35324a4ba2a653b23d106619e136 Mon Sep 17 00:00:00 2001 From: Max Dallabetta Date: Fri, 19 Apr 2024 18:20:56 +0200 Subject: [PATCH 4/4] revert changes --- docs/supported_publishers.md | 46 ++++++++++++++++++++++++++----- src/fundus/publishers/__init__.py | 2 +- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/docs/supported_publishers.md b/docs/supported_publishers.md index c40700ca2..23073c830 100644 --- a/docs/supported_publishers.md +++ b/docs/supported_publishers.md @@ -7,7 +7,7 @@ - + @@ -41,7 +41,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -379,7 +379,7 @@ - + @@ -405,13 +405,45 @@
Class                        Source                                                                    Source                                                               URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                                    Source                                                               URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                                    Source                                                               URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
+## LT-Publishers + + + + + + + + + + + + + + + + + + + + +
Class                        Source                                                                    URL                                                    Missing AttributesAdditional Attributes    
+ LRT + +
Lithuanian National Radio and Television
+
+ + www.lrt.lt + +   
+ + ## NA-Publishers - + @@ -445,7 +477,7 @@ - + @@ -522,7 +554,7 @@ - + diff --git a/src/fundus/publishers/__init__.py b/src/fundus/publishers/__init__.py index ecc072db2..7cb519e51 100644 --- a/src/fundus/publishers/__init__.py +++ b/src/fundus/publishers/__init__.py @@ -17,4 +17,4 @@ class PublisherCollection(metaclass=PublisherCollectionMeta): uk = UK fr = FR ch = CH - # lt = LT + lt = LT
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes    
Class                        Source                                                              Source                                                                     URL                                                     Missing Attributes Additional Attributes