ci: push branch manually if needed
This commit is contained in:
parent
97c9dfab96
commit
8fa4fbd819
1 changed files with 10 additions and 7 deletions
17
.github/workflows/update-lock.yml
vendored
17
.github/workflows/update-lock.yml
vendored
|
@ -47,13 +47,16 @@ jobs:
|
||||||
git commit -am "chore: update nvfetch sources"
|
git commit -am "chore: update nvfetch sources"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create PR
|
- name: Make PR if needed
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
HEAD_BRANCH: ${{ github.repository_owner }}:${{ steps.branch.outputs.branch }}
|
|
||||||
run: |
|
run: |
|
||||||
gh pr create \
|
if ! git diff --color=always --exit-code origin/main; then
|
||||||
--base main \
|
git push -u origin ${{ steps.branch.outputs.branch }}
|
||||||
--head "${{ env.HEAD_BRANCH }}" \
|
|
||||||
--title "chore: update lockfiles" \
|
gh pr create \
|
||||||
--fill
|
--base main \
|
||||||
|
--head "${{ steps.branch.outputs.branch }}" \
|
||||||
|
--title "chore: update lockfiles" \
|
||||||
|
--fill
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue