Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v0.0.36
_commit: v0.0.37
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
description: Copier template for creating Python libraries and executables
python_ci_versions:
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/dependabot-post-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dependabot Post-Update
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow file appears to duplicate functionality with the one in template/.github/workflows/dependabot-post-update.yaml. Consider consolidating if both files are not intentionally maintained for different purposes.

Copilot uses AI. Check for mistakes.
permissions:
contents: write # grant write access so we can push commits
on:
pull_request:
types: [opened, synchronize]
branches:
- main

jobs:
post-update:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
persist-credentials: true # (default) makes GITHUB_TOKEN available for git push

- name: Configure Git author
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Update devcontainer hash
run: python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update

- name: Commit & push changes
run: |
# only commit if there are changes
if ! git diff --quiet; then
git add .
git commit -m "chore: apply post-Dependabot script changes"
git push
else
echo "No changes to commit"
fi
38 changes: 38 additions & 0 deletions template/.github/workflows/dependabot-post-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Dependabot Post-Update
permissions:
contents: write # grant write access so we can push commits
on:
pull_request:
types: [opened, synchronize]
branches:
- main

jobs:
post-update:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
with:
persist-credentials: true # (default) makes GITHUB_TOKEN available for git push

- name: Configure Git author
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Update devcontainer hash
run: python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update

- name: Commit & push changes
run: |
# only commit if there are changes
if ! git diff --quiet; then
git add .
git commit -m "chore: apply post-Dependabot script changes"
git push
else
echo "No changes to commit"
fi