Skip to content

Commit 9f530e1

Browse files
committed
chore: Update GitHub Actions workflow to use latest actions and correct paths for X4 add-on library
1 parent c1b4baf commit 9f530e1

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/autoupdate-x4addon-library.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout AddonPrep repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
14+
with:
15+
path: common/X4-LuaLSAddonPrep
1416

1517
- name: Checkout X4-LuaLSAddon repository
16-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1719
with:
1820
repository: ${{ github.repository_owner }}/X4-LuaLSAddon
21+
path: common/X4-LuaLSAddon
1922

2023
- name: Set up Node.js
21-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2225
with:
2326
node-version: '22'
2427

@@ -27,31 +30,31 @@ jobs:
2730
run: echo "branch_name=library-update-$(date +'%Y%m%d-%H%M')" >> $GITHUB_OUTPUT
2831

2932
- name: Create branch in X4-LuaLSAddon
30-
working-directory: X4-LuaLSAddon
33+
working-directory: common/X4-LuaLSAddon
3134
run: |
3235
git config user.name github-actions
3336
git config user.email [email protected]
3437
git checkout -b ${{ steps.branch-name.outputs.branch_name }}
3538
3639
- name: Install dependencies
37-
working-directory: X4-LuaLSAddonPrep/script
40+
working-directory: common/X4-LuaLSAddonPrep/script
3841
run: npm install
3942

4043
- name: Generate annotations
41-
working-directory: X4-LuaLSAddonPrep/script
44+
working-directory: common/X4-LuaLSAddonPrep/script
4245
run: node generateAllAnnotations.js --generate-from-data
4346

4447

4548
- name: Check for changes
4649
id: check_changes
47-
working-directory: X4-LuaLSAddon
50+
working-directory: common/X4-LuaLSAddon
4851
run: |
4952
git add .
5053
git diff --staged --quiet || echo "changes=true" >> $GITHUB_OUTPUT
5154
5255
- name: Commit and push changes
5356
if: steps.check_changes.outputs.changes == 'true'
54-
working-directory: X4-LuaLSAddon
57+
working-directory: common/X4-LuaLSAddon
5558
run: |
5659
git commit -m "Auto-update X4 add-on library from data files"
5760
git push -u origin ${{ steps.branch-name.outputs.branch_name }}
@@ -61,7 +64,7 @@ jobs:
6164
uses: peter-evans/create-pull-request@v5
6265
with:
6366
token: ${{ secrets.GITHUB_TOKEN }}
64-
path: X4-LuaLSAddon
67+
path: common/X4-LuaLSAddon
6568
commit-message: Auto-update X4 add-on library from data files
6669
title: Auto-update X4 add-on library from data files
6770
body: |

0 commit comments

Comments
 (0)