Skip to content

Commit

Permalink
Fix workflows that need to push to a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nateowami committed Dec 19, 2024
1 parent 7e5ee99 commit 1932fde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview-to-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: preview
persist-credentials: false
persist-credentials: true
fetch-depth: 0

- name: Set up Node.js
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/fetch-and-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
persist-credentials: true

- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
Expand All @@ -35,8 +35,6 @@ jobs:
run: ./build.sh

- name: Push changes to preview branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: git push --force origin HEAD:preview

- name: Deploy preview to Netlify
Expand Down

0 comments on commit 1932fde

Please sign in to comment.