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 7db1f24
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/convert-changelog.yaml
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 @@ -66,14 +59,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r scripts/requirements.txt
pip install -r fa/scripts/requirements.txt
- name: Convert changelog to Lua
run: |
mkdir lua_changelog
for file in changelog/*.md; do
output_file = $(basename ${file%.md}.lua)
python3 scripts/markdown2lua.py "${file}" "lua_changelog/${output_file}"
out_dir = lua_changelog
mkdir $out_dir
for file in fa/changelog/*.md; do
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 7db1f24

Please sign in to comment.