Skip to content

Commit 0482b50

Browse files
committed
Update CI
1 parent 870254e commit 0482b50

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
uses: actions/checkout@v6
3131
with:
3232
ref: 'main'
33-
fetch-depth: 2
33+
fetch-depth: 0
3434
fetch-tags: true
3535

3636
- name: Check for Docker changes
3737
id: changes
3838
run: |
39-
if git diff --name-only $(git describe --abbrev=0 --tags $(git describe --abbrev=0)^) $(git describe --abbrev=0) | grep '^\.devcontainer/Dockerfile'; then
39+
if git diff --name-only $(git describe --abbrev=0 --tags $(git describe --abbrev=0)^) $(git describe --abbrev=0) | grep -P '^(\.devcontainer/(?!devcontainer\.json).+)|(\.github/workflows/build.yaml)'; then
4040
echo "changed=true" >> $GITHUB_OUTPUT
4141
else
4242
echo "changed=false" >> $GITHUB_OUTPUT
@@ -68,6 +68,7 @@ jobs:
6868
with:
6969
push: true
7070
file: .devcontainer/Dockerfile
71+
context: .devcontainer
7172
tags: ${{ steps.meta.outputs.tags }}
7273
labels: ${{ steps.meta.outputs.labels }}
7374
cache-from: type=gha

0 commit comments

Comments
 (0)