Skip to content

Commit d3c0d3a

Browse files
committed
ci: update GitHub Actions workflows and dependencies
- Add workflow_dispatch trigger for manual runs - Upgrade actions/checkout from v2 to v4 - Upgrade leafo/gh-actions-lua from v8 to v12 - Upgrade upload/download artifact actions from v2 to v4
1 parent 6765789 commit d3c0d3a

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: generate and publish manifest
33
on:
44
push:
55
tags: [ 'v*' ]
6+
workflow_dispatch:
67

78
permissions:
89
contents: write
@@ -15,10 +16,10 @@ jobs:
1516
run: |
1617
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV
1718
echo "VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3 | cut -c2-)" >> $GITHUB_ENV
18-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1920

2021
- name: Set up Lua
21-
uses: leafo/gh-actions-lua@v8
22+
uses: leafo/gh-actions-lua@v12
2223
with:
2324
luaVersion: '5.3.5'
2425

@@ -37,7 +38,7 @@ jobs:
3738
print(str)' > manifest.json
3839
cat manifest.json
3940
- name: Upload JSON file
40-
uses: actions/upload-artifact@v2
41+
uses: actions/upload-artifact@v4
4142
with:
4243
name: manifest
4344
path: manifest.json
@@ -50,9 +51,9 @@ jobs:
5051
echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV
5152
echo "VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3 | cut -c2-)" >> $GITHUB_ENV
5253
- name: Checkout code
53-
uses: actions/checkout@v2
54+
uses: actions/checkout@v4
5455
- name: Download JSON file
55-
uses: actions/download-artifact@v2
56+
uses: actions/download-artifact@v4
5657
with:
5758
name: manifest
5859
- name: Compress build files

0 commit comments

Comments
 (0)