diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a49085..bcb2fb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,9 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5.0.0 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies @@ -65,9 +65,9 @@ jobs: python-version: "3.12" py: py312 steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 - name: Set up Python v${{ matrix.python-version }} - uses: actions/setup-python@v5.0.0 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -81,7 +81,7 @@ jobs: coverage combine coverage xml - name: Upload coverage - uses: codecov/codecov-action@v3.1.4 + uses: codecov/codecov-action@v4 build-dist: if: startsWith(github.ref, 'refs/tags/') @@ -91,8 +91,8 @@ jobs: name: Build package runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 - - uses: actions/setup-python@v5.0.0 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 name: Install Python with: python-version: "3.10" @@ -100,7 +100,7 @@ jobs: run: pip install -U hatch - name: Build package run: hatch build - - uses: actions/upload-artifact@v4.0.0 + - uses: actions/upload-artifact@v4 with: path: dist/* name: distribution @@ -110,23 +110,23 @@ jobs: needs: build-dist runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v4.1.0 + - uses: actions/download-artifact@v4 with: name: distribution path: dist - - uses: pypa/gh-action-pypi-publish@v1.8.11 + - uses: pypa/gh-action-pypi-publish@v1.8.14 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} # repository_url: https://test.pypi.org/legacy/ - skip_existing: true + skip-existing: true release: name: Release needs: build-dist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 - name: Get tag metadata id: tag run: | @@ -141,7 +141,7 @@ jobs: TAG_BODY="${TAG_BODY//$'\r'/'%0D'}" echo "body=$TAG_BODY" >> $GITHUB_OUTPUT - name: Create Release - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2 id: create-release with: name: ${{ steps.tag.outputs.title }} @@ -149,12 +149,12 @@ jobs: body: ${{ steps.tag.outputs.body }} draft: false prerelease: false - - uses: actions/download-artifact@v4.1.0 + - uses: actions/download-artifact@v4 name: Download builds with: name: distribution path: dist - - uses: shogo82148/actions-upload-release-asset@v1.7.2 + - uses: shogo82148/actions-upload-release-asset@v1 name: Upload release assets with: upload_url: ${{ steps.create-release.outputs.upload_url }} diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index c385267..1ea6588 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -13,9 +13,9 @@ jobs: autoupdate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v5.0.0 + uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install pre-commit @@ -23,7 +23,7 @@ jobs: - name: Run pre-commit autoupdate run: pre-commit autoupdate - name: Open pull request - uses: peter-evans/create-pull-request@v5.0.2 + uses: peter-evans/create-pull-request@v5 with: branch: pre-commit-autoupdate title: Upgrade pre-commit hooks revisions diff --git a/.github/workflows/update-copyright-years.yml b/.github/workflows/update-copyright-years.yml index a0433f9..d9c5e94 100644 --- a/.github/workflows/update-copyright-years.yml +++ b/.github/workflows/update-copyright-years.yml @@ -13,9 +13,9 @@ jobs: action-update-license-year: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: FantasticFiasco/action-update-license-year@v3.0.2 + - uses: FantasticFiasco/action-update-license-year@v3 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-gh-actions.yml b/.github/workflows/update-gh-actions.yml index 13a1177..5116e45 100644 --- a/.github/workflows/update-gh-actions.yml +++ b/.github/workflows/update-gh-actions.yml @@ -9,7 +9,7 @@ jobs: update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.1 + - uses: actions/checkout@v4 with: token: ${{ secrets.UPDATE_GH_ACTIONS_TOKEN }} @@ -17,3 +17,4 @@ jobs: uses: saadmk11/github-actions-version-updater@v0.8.1 with: token: ${{ secrets.UPDATE_GH_ACTIONS_TOKEN }} + release_types: major