This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site-archive.git
The following commit(s) were added to refs/heads/main by this push:
new 35e15ebb4a Add proper criteria for committing changes
35e15ebb4a is described below
commit 35e15ebb4a9b2d90148d5c01ad3a1d776c55f31d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun May 11 12:26:39 2025 +0200
Add proper criteria for committing changes
---
.github/workflows/s3-to-github.yml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/s3-to-github.yml
b/.github/workflows/s3-to-github.yml
index 93b98d2f28..eae2d7063c 100644
--- a/.github/workflows/s3-to-github.yml
+++ b/.github/workflows/s3-to-github.yml
@@ -147,9 +147,8 @@ jobs:
--processes "${{inputs.processes}}"
working-directory: /mnt/cloned-airflow-site-archive
- - name: Diff summary
- run : |
- git diff --stat
+ - name: Show files that will be committed
+ run : git add --dry-run .
working-directory: /mnt/cloned-airflow-site-archive
- name: Committing changes
@@ -158,9 +157,9 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
echo "Running git add"
- git add .
+ git add --verbose .
echo "Running git commit"
git commit -m "Sync S3 to GitHub" || echo "No changes to commit"
git push --force origin main
working-directory: /mnt/cloned-airflow-site-archive
- if: inputs.commit-changes == 'true'
+ if: inputs.commit-changes == true && github.ref == 'refs/heads/main'