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 }} 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