display all contexts before the Setup job step #142

Open
opened 2024-01-07 15:18:01 +00:00 by earl-warren · 0 comments
Owner

There could be an additional step Contexts info before Setup job where all available contexts are displayed in full. Figuring out what is available depending on the workflow being run is entirely dependent on the Forgejo logic. Documenting the content of properly is a daunting task.

A step can be added to a job with:

run: |
   cat <<'EOF'
   toJSON(github.event)
   EOF   

and this is likely most often what people end up doing. Some jobs even have a permanently activated step that shows that information so that it does not need to be added.

image

There could be an additional step `Contexts info` before `Setup job` where all available contexts are displayed in full. Figuring out what is available depending on the workflow being run is entirely dependent on the [Forgejo logic](https://codeberg.org/forgejo/forgejo/src/commit/21beb7e437e240bc2e5d8a967ba18b8c65112395/services/actions/notifier.go). Documenting the content of properly is a daunting task. A step can be added to a job with: ```yaml run: | cat <<'EOF' toJSON(github.event) EOF ``` and this is likely most often what people end up doing. Some jobs even have a permanently activated step that shows that information so that it does not need to be added. ![image](/attachments/0a16a39d-6757-4df2-b1f2-2c133f06b855)
131 KiB
earl-warren added the
Kind/Enhancement
Kind/Documentation
labels 2024-01-07 15:18:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo/runner#142
No description provided.