From d8f82be12295e24a21436164ab2d5aab994583b5 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index e8f09555f..fade24a81 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -13,10 +13,17 @@ jobs: # 22.04's podman has issues with piping and causes tar errors runs-on: ubuntu-20.04 if: ${{ github.actor == 'dependabot[bot]' }} + env: + HEAD_SHA: ${{ github.event.pull_request.head.sha }} + BASE_SHA: ${{ github.event.pull_request.base.sha }} + steps: - name: Clone repository uses: actions/checkout@v3 + - name: Fetch PR commits + run: git fetch origin "${BASE_SHA}" "${HEAD_SHA}" + - name: Update node-modules for package.json changes run: | make tools/node-modules @@ -38,6 +45,6 @@ jobs: git commit --amend --no-edit 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.base_ref }}'" ssh-add -D ssh-agent -k