Skip to content

Commit

Permalink
chore: Fix update deps action
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 21, 2024
1 parent ad84e5e commit e7d8d73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
env:
GH_TOKEN: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
run: |
set -e
[[ -z $(git diff --stat | grep package.json) ]] && echo "::info::Nothing to update" && exit 0
VERSION=$(npm explore --no-workspaces @diplodoc/transform "node -pe 'require(\"./package.json\").version'" --shell sh)
git config --global user.email "[email protected]"
Expand All @@ -39,6 +43,6 @@ jobs:
git push -f origin :ci/update-deps/${{ inputs.package }}-$VERSION || true
git checkout -b ci/update-deps/${{ inputs.package }}-$VERSION
git add package.json package-lock.json
git commit -m "deps: Update @diplodoc/transform to $VERSION"
git commit -m "deps: Update ${{ inputs.package }} to $VERSION"
git push -u origin ci/update-deps/${{ inputs.package }}-$VERSION
gh pr create -f

0 comments on commit e7d8d73

Please sign in to comment.