diff --git a/.copier-answers.yml b/.copier-answers.yml index 24f34d32..0374019c 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: v0.0.38 +_commit: v0.0.39 _src_path: gh:LabAutomationAndScreening/copier-base-template.git description: Copier template for creating Python libraries and executables python_ci_versions: diff --git a/.github/workflows/dependabot-post-update.yaml b/.github/workflows/dependabot-post-update.yaml index fa4b163d..68da3da2 100644 --- a/.github/workflows/dependabot-post-update.yaml +++ b/.github/workflows/dependabot-post-update.yaml @@ -17,6 +17,8 @@ jobs: uses: actions/checkout@v4.2.2 with: persist-credentials: true # (default) makes GITHUB_TOKEN available for git push + fetch-depth: 1 # Fetch tip commit so we can push back + ref: ${{ github.event.pull_request.head.ref }} # Check out the head ref of the PR instead of detached HEAD - name: Configure Git author run: | @@ -32,7 +34,7 @@ jobs: if ! git diff --quiet; then git add . git commit -m "chore: apply post-Dependabot script changes" - git push + git push origin HEAD:${{ github.event.pull_request.head.ref }} else echo "No changes to commit" fi diff --git a/template/.github/workflows/dependabot-post-update.yaml b/template/.github/workflows/dependabot-post-update.yaml index fa4b163d..68da3da2 100644 --- a/template/.github/workflows/dependabot-post-update.yaml +++ b/template/.github/workflows/dependabot-post-update.yaml @@ -17,6 +17,8 @@ jobs: uses: actions/checkout@v4.2.2 with: persist-credentials: true # (default) makes GITHUB_TOKEN available for git push + fetch-depth: 1 # Fetch tip commit so we can push back + ref: ${{ github.event.pull_request.head.ref }} # Check out the head ref of the PR instead of detached HEAD - name: Configure Git author run: | @@ -32,7 +34,7 @@ jobs: if ! git diff --quiet; then git add . git commit -m "chore: apply post-Dependabot script changes" - git push + git push origin HEAD:${{ github.event.pull_request.head.ref }} else echo "No changes to commit" fi