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'
|
if: steps.upgrade.outputs.has_updates == 'true'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
run: >-
|
run: |
|
||||||
cd "${{ env.GITHUB_WORKSPACE }}" &&
|
cd "${{ github.workspace }}"
|
||||||
tea pr create
|
|
||||||
--head "${{ github.actor }}:deps/auto-upgrade-${{ github.run_number }}"
|
# Read the PR body from file
|
||||||
--base "${{ github.ref_name }}"
|
PR_BODY=$(cat "${{ github.workspace }}/pr-body.txt")
|
||||||
--title "⬆️ Automated Dependency Upgrade"
|
|
||||||
--description ""
|
# Commit and push changes
|
||||||
--labels "deps/bot"
|
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
|
- name: Summary
|
||||||
if: success()
|
if: success()
|
||||||
|
|||||||
Reference in New Issue
Block a user