From 357e36a1134b53d1ca2970e45ac603a42d567478 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 22 Sep 2023 14:34:18 +0200 Subject: [PATCH] fixup 99 --- .github/workflows/dependabot.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index e8f09555f..84a397aef 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -13,9 +13,13 @@ jobs: # 22.04's podman has issues with piping and causes tar errors runs-on: ubuntu-20.04 if: ${{ github.actor == 'dependabot[bot]' }} + steps: - name: Clone repository uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Update node-modules for package.json changes run: | @@ -35,9 +39,9 @@ jobs: - name: Force push the change to trigger testing workflows run: | sleep 1 # make sure the timestamp changes - git commit --amend --no-edit + git commit --amend --no-edit node_modules eval $(ssh-agent) ssh-add - <<< '${{ secrets.SELF_DEPLOY_KEY }}' - git push --force 'git@github.com:${{ github.repository }}' '${{ github.ref_name }}' + echo "git push --force 'git@github.com:${{ github.repository }}' '${{ github.head_ref }}'" ssh-add -D ssh-agent -k