Skip to content

Commit

Permalink
Merge pull request #32 from jasonkarns/default-branch
Browse files Browse the repository at this point in the history
don't hardcode default branch
  • Loading branch information
jasonkarns authored May 14, 2024
2 parents ff3e1fc + ad692e5 commit 5ad58fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

permissions: { contents: read }

Expand All @@ -12,7 +12,7 @@ jobs:

lint:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
if: github.ref_name != github.event.repository.default_branch
permissions: { statuses: write }
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5ad58fc

Please sign in to comment.