From 5cc94eebb3793e5f73f42cecba86b1da5e6123b6 Mon Sep 17 00:00:00 2001 From: f-peverali <112709306+f-peverali@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:31:10 +0200 Subject: [PATCH] add commit statement --- .github/workflows/TC-version-update.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/TC-version-update.yml b/.github/workflows/TC-version-update.yml index 638b88ae..1d1b7269 100644 --- a/.github/workflows/TC-version-update.yml +++ b/.github/workflows/TC-version-update.yml @@ -29,4 +29,16 @@ jobs: - name: execute py script # run main.py run: python ./scripts/release_publish.py -b - \ No newline at end of file + + - name: commit files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add -A + git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty) + + - name: push changes + uses: ad-m/github-push-action@v0.6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: main \ No newline at end of file