Skip to content

Instantly share code, notes, and snippets.

@eloisetaylor5693
Last active February 15, 2024 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eloisetaylor5693/1645bfdcf11a11be027d9e0e6ff633e5 to your computer and use it in GitHub Desktop.
Save eloisetaylor5693/1645bfdcf11a11be027d9e0e6ff633e5 to your computer and use it in GitHub Desktop.
Github actions cheatsheet

Github actions cheatsheet

Logging

using annotations:

Add annotations with markdown:

steps:
  - name: Adding markdown content to the step summary output
    run: echo '### Hello world! 🚀' >> "$GITHUB_STEP_SUMMARY"

Send slack notification

https://app.slack.com/block-kit-builder/T024VMWJC

      - name: Notify slack channel
        id: slack
        uses: slackapi/slack-github-action@v1.24.0
        with:
          payload: |
            {
              "channel": "#tech",
              "text": ":white_check_mark: *Maintenance mode disabled* \nThe site should be back up and working okay now.\n\n Environment: *${{ github.event.inputs.environment }}* \n Triggered by: ${{ github.actor }}"
            }
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment