From 7db1f247ba5e210488d7ea6993421dc6e3a5b9a9 Mon Sep 17 00:00:00 2001 From: Zjonn Date: Mon, 23 Sep 2024 00:26:17 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/convert-changelog.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/convert-changelog.yaml b/.github/workflows/convert-changelog.yaml index 89def06ae6..68e16e5718 100644 --- a/.github/workflows/convert-changelog.yaml +++ b/.github/workflows/convert-changelog.yaml @@ -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 @@ -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