Skip to content

Instantly share code, notes, and snippets.

@ieatwebsites
ieatwebsites / action-test.yml
Created July 23, 2023 16:48
GitHub Actions for beginners - Detect if the branch name is 'main'
name: Check Branch Name
on: [push]
jobs:
branch_name:
if: github.ref_name == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Branch Name