Skip to content

Commit 504eb0b

Browse files
committed
chore: update GitHub actions (#22)
1 parent bc703f8 commit 504eb0b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
submodules: 'true'
1515
- name: Download artifacts
16-
uses: actions/download-artifact@v3
16+
uses: actions/download-artifact@v4
1717
- name: Create release
1818
run: |
1919
cd LuaJIT || exit 1
20-
git checkout v2.1
21-
COMMIT_TIME=$(git show -s --format=%ct)
22-
DAYS=$((COMMIT_TIME / 60 / 60 / 24))
23-
TAG="v2.1.${DAYS}"
20+
VERSION="2.1"
21+
git checkout "v${VERSION}"
22+
COMMIT_TIME_SECONDS=$(git show -s --format=%ct)
23+
COMMIT_TIME_DAYS=$((COMMIT_TIME_SECONDS / 60 / 60 / 24))
2424
cd .. || exit 2
25-
gh release create "${TAG}" --notes "LuaJIT ${TAG}" ./build/*.msi ./build/*.zip
25+
gh release create "v${VERSION}.${COMMIT_TIME_DAYS}" --notes "LuaJIT ${VERSION}.${COMMIT_TIME_SECONDS}" ./build/*.msi ./build/*.zip
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/reusable-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
runs-on: windows-latest
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v4
1010
with:
1111
submodules: 'true'
1212
- name: Package
1313
shell: pwsh
1414
run: ./Build-LuaJIT.ps1
1515
- name: Upload artifacts
16-
uses: actions/upload-artifact@v3
16+
uses: actions/upload-artifact@v4
1717
with:
1818
name: build
1919
path: |

0 commit comments

Comments
 (0)