From cc5916a45bcad0ba99788ffe322df817f0cbdbb0 Mon Sep 17 00:00:00 2001 From: "Ching-Hsin,Lee" Date: Thu, 27 Jun 2024 15:05:42 +0800 Subject: [PATCH] Update release yml file for user information --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9030c8..179bc06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.inputs.commit_id }} - name: Configure git identity run: | - git config --global user.name "Release Workflow" + git config --global user.name ${{ github.actor }} + git config --global user.email ${{ github.actor }}@users.noreply.github.com + - name: create a new branch that references commit id + run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }} - name: Tag Commit and Push to remote run: | git tag ${{ github.event.inputs.version_number }} -a -m "Release ${{ github.event.inputs.version_number }}" @@ -40,7 +43,7 @@ jobs: - name: Install ZIP tools run: sudo apt-get install zip unzip - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.1 with: ref: ${{ github.event.inputs.commit_id }} path: FreeRTOS-LTS @@ -62,7 +65,7 @@ jobs: ls FreeRTOSv${{ github.event.inputs.version_number }} diff -r -x "*.git*" FreeRTOSv${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/ - name: Create artifact of ZIP - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: FreeRTOSv${{ github.event.inputs.version_number }}.zip path: zip-check/FreeRTOSv${{ github.event.inputs.version_number }}.zip