From 9c17096ca84b1baef2c421c46cd96a54a171b3b2 Mon Sep 17 00:00:00 2001 From: bakhirev Date: Fri, 27 Jun 2025 09:37:13 +0300 Subject: [PATCH] update --- .github/workflows/git-log.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/git-log.yml diff --git a/.github/workflows/git-log.yml b/.github/workflows/git-log.yml new file mode 100644 index 0000000..6c2a919 --- /dev/null +++ b/.github/workflows/git-log.yml @@ -0,0 +1,30 @@ +name: Update git log + +on: + pull_request: + types: [closed] + push: + branches: + - main + - develop + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Create log file + run: | + git fetch --unshallow || true + git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" > log.txt + + - name: Archive logs as artifact + uses: actions/upload-artifact@v3 + with: + name: git-log + path: log.txt \ No newline at end of file