Skip to content

Commit

Permalink
try in-line fetch
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
  • Loading branch information
agilgur5 committed Apr 5, 2024
1 parent d1a6699 commit 7f5047d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ jobs:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 50 # assume PRs are less than 50 commits -- fetch-depth is necessary in order to be able to push
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: "20" # change in all GH Workflows
Expand All @@ -432,6 +430,8 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add ui/yarn.lock
git commit -s --allow-empty -m 'chore: deduplicate yarn.lock'
# we are checked out on a detached HEAD, so need to fetch the branch and specify it in order to push
git fetch origin $GITHUB_HEAD_REF
git push origin HEAD:$GITHUB_HEAD_REF
# if lint or deduplicate make changes that are not in the PR, fail the build
- name: Check if lint & deduplicate made changes not present in the PR
Expand Down

0 comments on commit 7f5047d

Please sign in to comment.