Skip to content

Instantly share code, notes, and snippets.

@perpil
Created January 21, 2024 14:59
Show Gist options
  • Select an option

  • Save perpil/108e1db1158289fe4228b7f910fc88e4 to your computer and use it in GitHub Desktop.

Select an option

Save perpil/108e1db1158289fe4228b7f910fc88e4 to your computer and use it in GitHub Desktop.
Sample of how to emit markdown for speedrun from a GitHub action
name: Print Markdown
on:
workflow_dispatch:
jobs:
print-markdown:
runs-on: ubuntu-latest
steps:
- name: Print Markdown
run: |
printf '
```
#srConfig {transclude:"https://github.com/No-Backspace-Crew/Warp/wiki/Configuration"}
```
' >> $GITHUB_STEP_SUMMARY
printf '
```
#copy
Hello World
```
' >> $GITHUB_STEP_SUMMARY
printf '
```
#copy.withCreds
aws sts get-caller-identity
```
' >> $GITHUB_STEP_SUMMARY
printf '
```
#CWLInsights {logGroups: "/aws/lambda/speedrun-federation-${stage}"}
fields @timestamp, coalesce(@requestId,function_request_id), @message
| sort @timestamp desc
| limit 20
```
' >> $GITHUB_STEP_SUMMARY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment