Created
January 21, 2024 14:59
-
-
Save perpil/108e1db1158289fe4228b7f910fc88e4 to your computer and use it in GitHub Desktop.
Sample of how to emit markdown for speedrun from a GitHub action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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