mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
fix(pre-commit): push properly version 2
This commit is contained in:
parent
607574c26a
commit
3058060e2b
1 changed files with 8 additions and 1 deletions
9
.github/workflows/pre-commit.yml
vendored
9
.github/workflows/pre-commit.yml
vendored
|
@ -39,6 +39,11 @@ jobs:
|
|||
SKIP: no-commit-to-branch
|
||||
RUFF_OUTPUT_FORMAT: github
|
||||
|
||||
- name: Debug
|
||||
run: |
|
||||
echo "github.ref: ${{ github.ref }}"
|
||||
echo "github.actor: ${{ github.actor }}"
|
||||
|
||||
- name: Commit changes for dependabot PRs
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
run: |
|
||||
|
@ -47,7 +52,9 @@ jobs:
|
|||
git config --local user.name "github-actions[bot]"
|
||||
git add -A
|
||||
git commit -m "Apply pre-commit fixes"
|
||||
git push origin HEAD:main
|
||||
|
||||
# push to the PR branch
|
||||
git push origin HEAD:${{ github.ref }}
|
||||
echo "Pre-commit fixes committed and pushed"
|
||||
else
|
||||
echo "No changes to commit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue