diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 37867d3..89836d0 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -12,9 +12,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.7 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.7 - name: Install dependencies @@ -50,7 +50,7 @@ jobs: result-encoding: string - name: Cache NVDA id: cache-nvda - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: download key: ${{ runner.os }}-nvda_launcher-${{matrix.nvda-release}} diff --git a/.github/workflows/build_addon.yml.old b/.github/workflows/build_addon.yml.old index 362a16d..95f3f55 100644 --- a/.github/workflows/build_addon.yml.old +++ b/.github/workflows/build_addon.yml.old @@ -17,12 +17,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 cache: 'pip' @@ -50,14 +50,14 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/') }} needs: ["build"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: download releases files uses: actions/download-artifact@v4 - name: Display structure of downloaded files run: ls -R - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: packaged_addon/*.nvda-addon fail_on_unmatched_files: true diff --git a/.github/workflows/checkTranslatorsComments.yml b/.github/workflows/checkTranslatorsComments.yml.old similarity index 100% rename from .github/workflows/checkTranslatorsComments.yml rename to .github/workflows/checkTranslatorsComments.yml.old diff --git a/.github/workflows/upload-on-tag.yaml b/.github/workflows/upload-on-tag.yaml index 0d7d5c2..d713f77 100644 --- a/.github/workflows/upload-on-tag.yaml +++ b/.github/workflows/upload-on-tag.yaml @@ -12,15 +12,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Set my timezone # Useful when I push a release tag containing the date of today. - uses: szenius/set-timezone@v1.1 + uses: szenius/set-timezone@v2.0 with: timezoneLinux: "Europe/Paris" #- name: Test timezone # run: date +"%Z %z" - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Install dependencies @@ -38,7 +38,9 @@ jobs: print(f'===> Version:{version}') pattern = rf'## Change log.*### Version {version}\s*(.*?)\s*(\n(### Version)|(\[\d+\]:)|$)' fileContent = open('readme.md', 'r', encoding='utf8').read() - changeLog = re.search(pattern, fileContent, re.DOTALL).group(1) + '\n' + match = re.search(pattern, fileContent, re.DOTALL) + changeLog = match.group(1) if match else "" + changeLog += '\n' print(f'===> ChangeLog:\n<<<{changeLog}>>>\n') open('changelog.md', 'w', encoding='utf-8').write(changeLog) shell: python @@ -48,7 +50,7 @@ jobs: - name: Calculate sha256 run: sha256sum *.nvda-addon >> changelog.md - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: