From 911fa703f02f58f8a5877518acc952b74dc300a0 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Thu, 19 Dec 2024 06:02:57 +0300 Subject: [PATCH] workflow: fix --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1ef4497..6380c02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,12 +3,14 @@ name: Build and Push Docker Image on: push: paths: - - alaskarfin/version.txt # Trigger workflow only when version.txt changes + - alaskarfin/version.txt + - alaskarseer/version.txt jobs: build-alaskarfin: runs-on: ubuntu-latest environment: Dockerhub + if: contains(github.event.head_commit.message, 'alaskarfin/version.txt') steps: # Step 1: Check out the repository @@ -37,9 +39,9 @@ jobs: nomadics/alaskarfin:latest build-alaskarseer: - if: contains(github.event.commits.*.modified | join(' '), 'alaskarseer/version.txt') runs-on: ubuntu-latest environment: Dockerhub + if: contains(github.event.head_commit.message, 'alaskarseer/version.txt') steps: # Step 1: Check out the repository