Skip to content

Commit

Permalink
Specify branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed May 1, 2023
1 parent 09b9aa5 commit 088f9ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: actions/configure-pages@v2
- name: Build TinaCMS
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
TINA_CLIENT_ID: ${{ secrets.TINA_CLIENT_ID }}
TINA_TOKEN: ${{ secrets.TINA_TOKEN }}
run: npx tinacms build
Expand Down
2 changes: 1 addition & 1 deletion tina/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tinacms";
import { postFields } from "./templates";
import moment from 'moment';

const BRANCH = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
const BRANCH = process.env.HEAD || process.env.BRANCH_NAME || "main";
const CLIENT_ID = String(process.env.TINA_CLIENT_ID ?? '');
const TOKEN = String(process.env.TINA_TOKEN ?? '');

Expand Down

0 comments on commit 088f9ad

Please sign in to comment.