From 3cca525e7fd6d6215e05010d1e1694ce85e381da Mon Sep 17 00:00:00 2001 From: mauro sala Date: Tue, 14 Feb 2023 13:15:48 +0100 Subject: [PATCH] fix(.github): clear history if changed --- .github/workflows/clear_history.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/clear_history.yaml b/.github/workflows/clear_history.yaml index 14ae3ca..620d13f 100644 --- a/.github/workflows/clear_history.yaml +++ b/.github/workflows/clear_history.yaml @@ -22,7 +22,16 @@ jobs: git config --local user.email "info@krateo.io" git config --local user.name "krateoctl" git commit -m "Clear history" -a + - name: Verify Changed files + uses: tj-actions/verify-changed-files@v13 + id: verify-changed-files + with: + files: | + *.yml + *.yaml + *.tgz - name: Push changes + if: steps.verify-changed-files.outputs.files_changed == 'true' uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}