Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zjonn committed Sep 22, 2024
1 parent c7700bf commit 6ee8db9
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,11 @@ jobs:
name: Convert changelog
runs-on: ubuntu-latest
steps:
- name: Checkout scripts
- name: Checkout
uses: actions/checkout@v4
with:
path: scripts
sparse-checkout: |
scripts
- name: Checkout changelog
uses: actions/checkout@v4
with:
path: changelog
sparse-checkout: |
changelog
- name: Setup python
Expand All @@ -70,10 +63,11 @@ jobs:
- name: Convert changelog to Lua
run: |
mkdir lua_changelog
out_dir=lua_changelog
mkdir $out_dir
for file in changelog/*.md; do
output_file = $(basename ${file%.md}.lua)
python3 scripts/markdown2lua.py "${file}" "lua_changelog/${output_file}"
out_file=$(basename ${file%.md}.lua)
python3 scripts/markdown2lua.py "${file}" "${out_dir}/${out_file}"
done
- name: Add the Lua changelog as an artifact
Expand Down

0 comments on commit 6ee8db9

Please sign in to comment.