From 61092eb4db4eb392825042081f73d752fd473ba3 Mon Sep 17 00:00:00 2001 From: tnazarew Date: Thu, 26 Mar 2026 17:47:22 +0100 Subject: [PATCH 1/2] change condition to run update-site workflow Signed-off-by: tnazarew --- .github/workflows/main_new_release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_new_release.yml b/.github/workflows/main_new_release.yml index fe81f222..f1c42ad0 100644 --- a/.github/workflows/main_new_release.yml +++ b/.github/workflows/main_new_release.yml @@ -193,7 +193,10 @@ jobs: uses: ./.github/workflows/generate_compatibility_tables.yml update-site: - needs: generate-compatibility-tables + needs: + - update-repo-files + - generate-compatibility-tables + if: ${{ !failure() && needs.update-repo-files.outputs.changes_made == 'true' }} uses: ./.github/workflows/update_site.yml secrets: CI_PUSH_TOKEN: ${{ secrets.OL_SITE_PUSH_TOKEN }} From af3f84cd685179ed8e8c78d7aa3b74c467781df7 Mon Sep 17 00:00:00 2001 From: tnazarew Date: Thu, 26 Mar 2026 17:53:21 +0100 Subject: [PATCH 2/2] safeguard against failures caused by no files to commit Signed-off-by: tnazarew --- .github/workflows/update_site.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/update_site.yml b/.github/workflows/update_site.yml index 5652e0c4..aeaaa00e 100644 --- a/.github/workflows/update_site.yml +++ b/.github/workflows/update_site.yml @@ -53,6 +53,10 @@ jobs: # TOKEN: ${{ secrets.CI_PUSH_TOKEN }} run: | git add -A + if git diff --cached --quiet; then + echo "No changes to commit, skipping push" + exit 0 + fi git commit -sm "[bot] update compatibility tables with run data" # git remote set-url origin https://x-access-token:${TOKEN}@github.com/tnazarew/openlineage-site.git git push origin main \ No newline at end of file