Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(deps): fix deduplication commit for yarn.lock for Dependabot PRs #12882

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,17 @@ jobs:
- run: yarn --cwd ui lint
- run: yarn --cwd ui deduplicate
# Deduplicate UI deps for dependabot PRs
- if: github.actor == 'dependabot[bot]'
- name: Commit deduplicated yarn.lock for Dependabot PRs
if: github.actor == 'dependabot[bot]'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add ui/yarn.lock
git commit -s -m 'chore: deduplicate yarn.lock'
git commit -s --alow-empty -m 'chore: deduplicate yarn.lock'
agilgur5 marked this conversation as resolved.
Show resolved Hide resolved
git push
- run: git diff --exit-code
# 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
run: git diff --exit-code
# check to see if it'll start (but not if it'll render)
- run: yarn --cwd ui start &
- run: until curl http://localhost:8080 > /dev/null ; do sleep 10s ; done
Expand Down
Loading