Personal Knowledge Base

Home

❯

main

❯

GitHub Actions

GitHub Actions

Jun 22, 20251 min read

Avoid duplicate runs with push and pull_request

Run push only on the default branch (main/master):

on:
  push:
    branches:
      - main
  pull_request:

SSH into runners for debugging

Use the action-tmate action to expose SSH into a running action’s container.

Source: 4 tips for GitHub Actions usability (+2 bonus tips for debugging)


  • Avoid duplicate runs with push and pull_request
  • SSH into runners for debugging

Graph View

Created with Quartz v4.5.1 © 2025