Update dependency-check.yml
This commit is contained in:
13
.github/workflows/dependency-check.yml
vendored
13
.github/workflows/dependency-check.yml
vendored
@@ -225,7 +225,6 @@ jobs:
|
|||||||
if: steps.upgrade.outputs.has_updates == 'true'
|
if: steps.upgrade.outputs.has_updates == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: >-
|
run: >-
|
||||||
cd "${{ env.GITHUB_WORKSPACE }}" &&
|
|
||||||
tea login add
|
tea login add
|
||||||
-u "${{ github.server_url }}"
|
-u "${{ github.server_url }}"
|
||||||
-t "${{ secrets.GITHUB_TOKEN }}"
|
-t "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -234,15 +233,19 @@ jobs:
|
|||||||
if: steps.upgrade.outputs.has_updates == 'true'
|
if: steps.upgrade.outputs.has_updates == 'true'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
cd "${{ github.workspace }}"
|
|
||||||
|
|
||||||
# Read the PR body from file
|
# Read the PR body from file
|
||||||
PR_BODY=$(cat "${{ github.workspace }}/pr-body.txt")
|
PR_BODY=$(cat pr-body.txt)
|
||||||
|
|
||||||
# Commit and push changes
|
# Configure git authentication
|
||||||
git config user.name "Dependency Bot"
|
git config user.name "Dependency Bot"
|
||||||
git config user.email "bot@gitea.actions"
|
git config user.email "bot@gitea.actions"
|
||||||
|
|
||||||
|
# Set up authenticated remote URL
|
||||||
|
git remote set-url origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}"
|
||||||
|
|
||||||
|
# Commit and push changes
|
||||||
git checkout -b "deps/auto-upgrade-${{ github.run_number }}"
|
git checkout -b "deps/auto-upgrade-${{ github.run_number }}"
|
||||||
git add Cargo.toml.liquid
|
git add Cargo.toml.liquid
|
||||||
git commit -m "chore: upgrade dependencies"
|
git commit -m "chore: upgrade dependencies"
|
||||||
|
|||||||
Reference in New Issue
Block a user