From 144e9d1e08d050e47decf778ca35e673bc3bcd52 Mon Sep 17 00:00:00 2001 From: Samuel Wibrow <15628653+swibrow@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:05:35 +0200 Subject: [PATCH] tests: use valid tag (#137) * tests: use valid tag * ci: only publish docs on changes --- .github/workflows/_test-docker.yaml | 2 +- .github/workflows/publish-docs.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_test-docker.yaml b/.github/workflows/_test-docker.yaml index 53abe26c..df88bc37 100644 --- a/.github/workflows/_test-docker.yaml +++ b/.github/workflows/_test-docker.yaml @@ -15,7 +15,7 @@ jobs: aws_region: ${{ vars.aws_region }} aws_role_name: ${{ vars.aws_role_name }} image_name: test-docker-build-push - image_tag: ${{ github.head_ref }} + image_tag: ${{ github.sha }} docker_context: tests/docker docker_push: false diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index f0536ad3..584602c5 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -3,6 +3,11 @@ on: push: branches: - main + paths: + - docs/** + - README.md + - mkdocs.yaml + - .github/workflows/publish-docs.yaml env: PYTHON_VERSION: 3.x