Skip to content

Commit

Permalink
remove default branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Mar 5, 2024
1 parent bfc25b3 commit 6a773ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ async function run(): Promise<void> {
const token = core.getInput('github-token')
octokit = github.getOctokit(token)
const { eventName, repo, payload } = github.context

// On push to default branch, push to Astro Studio
if (eventName === 'push' && payload.ref === `refs/heads/${payload.repository?.default_branch ?? 'main'}`) {
console.log(payload.ref_name);
// On push to any branch defined in `on: ...`, run `astro db push`
if (eventName === 'push') {
await push();
return;
}
Expand Down

0 comments on commit 6a773ec

Please sign in to comment.