Update dependency-check.yml
This commit is contained in:
27
.github/workflows/dependency-check.yml
vendored
27
.github/workflows/dependency-check.yml
vendored
@@ -234,14 +234,25 @@ jobs:
|
||||
if: steps.upgrade.outputs.has_updates == 'true'
|
||||
permissions:
|
||||
contents: write
|
||||
run: >-
|
||||
cd "${{ env.GITHUB_WORKSPACE }}" &&
|
||||
tea pr create
|
||||
--head "${{ github.actor }}:deps/auto-upgrade-${{ github.run_number }}"
|
||||
--base "${{ github.ref_name }}"
|
||||
--title "⬆️ Automated Dependency Upgrade"
|
||||
--description ""
|
||||
--labels "deps/bot"
|
||||
run: |
|
||||
cd "${{ github.workspace }}"
|
||||
|
||||
# Read the PR body from file
|
||||
PR_BODY=$(cat "${{ github.workspace }}/pr-body.txt")
|
||||
|
||||
# Commit and push changes
|
||||
git config user.name "Dependency Bot"
|
||||
git config user.email "bot@gitea.actions"
|
||||
git checkout -b "deps/auto-upgrade-${{ github.run_number }}"
|
||||
git add Cargo.toml.liquid
|
||||
git commit -m "chore: upgrade dependencies"
|
||||
git push origin "deps/auto-upgrade-${{ github.run_number }}"
|
||||
|
||||
# Create PR with description from file
|
||||
tea pr create \
|
||||
--title "⬆️ Automated Dependency Upgrade" \
|
||||
--description "$PR_BODY" \
|
||||
--labels "deps/bot"
|
||||
|
||||
- name: Summary
|
||||
if: success()
|
||||
|
||||
Reference in New Issue
Block a user