From 5920e95b3aaf089fcda23aab2a719951ca46db5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Wed, 31 Aug 2022 07:38:41 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20action=20=E6=B8=AC=E8=A9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto_newversion.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto_newversion.yml b/.github/workflows/auto_newversion.yml index b78d576..d6d3887 100644 --- a/.github/workflows/auto_newversion.yml +++ b/.github/workflows/auto_newversion.yml @@ -12,5 +12,21 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: jitterbit/get-changed-files@v1 - - run: echo ${{ steps.files.outputs.all }} + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + + # - name: Run AutoBuild + # run: | + # cd AutoBuild + # python auto_update_version.py + - id: files + uses: jitterbit/get-changed-files@v1 + with: + format: "csv" + - run: | + mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.files.outputs.added_modified }}') + for added_modified_file in "${added_modified_files[@]}"; do + echo "Do something with this ${added_modified_file}." + done