Overhaul Action for Documentation publishing#449
Overhaul Action for Documentation publishing#449nephros merged 31 commits intosailfishos-patches:masterfrom
Conversation
|
Okay this needed some additional tweaking, mainly adding permissions. But it runs successfully now. |
|
Cool! As I am still interested in learning more about GH actions, I retraced your latest commit set. I already quickly looked once over the documentation of all three GH pages related actions by GitHub you use here, but missed that the two permissions required for the "deploy-pages" action are mentioned in its documentation. Even more explicitly in the section "security considerations", which is interesting to read in its entirety. The authors (GitHub employees) also suggest to split the workflow into multiple jobs, so these two permissions only have to be granted to the "deploy" job (they can be set outside of a job scope for all jobs or inside one for a specific job) for "better security" (I have no idea how the other actions called may (ab)use these permissions). Note that then one has to be sure that no concurrency between jobs occurs (IIRC the default is "off" anyway) and AFAIU |
|
Sorry for the noise, some improvements:
This LGTM now, would merge if there are no objections. |
- Add one level of HTML indention - Also tie second Ubuntu environment to a specific version, so all environments and actions are versioned - Shorten one comment - Omit a two newlines interjected in second job - Add trailing newline
Nice improvements! Side note: I usually do not see the "noise" (i.e., many commits), because I only view the resulting diff to when I viewed a file the last time in GitHub's web-frontend. If unaware of this feature, it may be problematic, because one becomes easily confused to assume to view the diff against the original file (not only the changes since last viewed). IIRC this is triggered by setting the checkbox "Viewed" above each file in a PR. If aware of this, it is a really cool feature, and it just takes a few clicks to really see the diff against the original file, so this is not an issue, either.
BTW, none of my comments, after I approved this changeset are "objections", they all were "suggestions". Currently I have too little time to come up with well founded objections, hence I do not dare to utter something such, here. Consequently my "Beautify"-PR #5 against the |
[gendoc-create-html_qt56.yml] Beautify
|
@nephros, a bit of nitpicking, as I just "stole" a few enhancements from your action, hence read it again (this time even more thoroughly) and wondered, if setting |
|
The thinking was to not permit a user to specify no (SOURCE_BRANCH="") branch. Of course, the check in https://github.com/sailfishos-patches/patchmanager/blob/master/.github/workflows/gendoc-create-html_qt56.yml#L31 does deal with that case so it would work. |
|
Oh, now I see that we are discussing two separate points.
In all cases (even when performing input sanitising for security reasons) the caller shall provided with the feedback (s)he/it deserves: "This input was nonsense" or silence, when the input was fine. PR #455 depicts what I have in mind. |
…ty input Reference: #449 (comment)
|
… and now for something completely different (well, not really, but different locations: line 44 and line 45):
|
|
Ad 2. Yes that repo is dead, removing it silences some error messages (and speeds up very slightly saving a timeout). Ad 1. Well you found out. There are several ways to skin a cat here. |

Continuing work from #447: