Skip to content

Commit a44dc2c

Browse files
authored
Update release yml file for user information (#32)
1 parent 5e4d56e commit a44dc2c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4.1.1
2020
with:
2121
ref: ${{ github.event.inputs.commit_id }}
2222
- name: Configure git identity
2323
run: |
24-
git config --global user.name "Release Workflow"
24+
git config --global user.name ${{ github.actor }}
25+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
26+
- name: create a new branch that references commit id
27+
run: git checkout -b ${{ github.event.inputs.version_number }} ${{ github.event.inputs.commit_id }}
2528
- name: Tag Commit and Push to remote
2629
run: |
2730
git tag ${{ github.event.inputs.version_number }} -a -m "Release ${{ github.event.inputs.version_number }}"
@@ -40,7 +43,7 @@ jobs:
4043
- name: Install ZIP tools
4144
run: sudo apt-get install zip unzip
4245
- name: Checkout code
43-
uses: actions/checkout@v2
46+
uses: actions/checkout@v4.1.1
4447
with:
4548
ref: ${{ github.event.inputs.commit_id }}
4649
path: FreeRTOS-LTS
@@ -62,7 +65,7 @@ jobs:
6265
ls FreeRTOSv${{ github.event.inputs.version_number }}
6366
diff -r -x "*.git*" FreeRTOSv${{ github.event.inputs.version_number }}/FreeRTOS-LTS/ ../FreeRTOS-LTS/
6467
- name: Create artifact of ZIP
65-
uses: actions/upload-artifact@v2
68+
uses: actions/upload-artifact@v4
6669
with:
6770
name: FreeRTOSv${{ github.event.inputs.version_number }}.zip
6871
path: zip-check/FreeRTOSv${{ github.event.inputs.version_number }}.zip

0 commit comments

Comments
 (0)