Skip to content

Commit

Permalink
Update GitHub Action Versions (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mondeja and github-actions[bot] authored Jan 13, 2024
1 parent 1b504dd commit ec80f63
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.0.0
with:
python-version: "3.10"
- name: Install dependencies
Expand Down Expand Up @@ -65,9 +65,9 @@ jobs:
python-version: "3.12"
py: py312
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
- name: Set up Python v${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -81,7 +81,7 @@ jobs:
coverage combine
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v3.1.4

build-dist:
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -91,16 +91,16 @@ jobs:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4.1.1
- uses: actions/setup-python@v5.0.0
name: Install Python
with:
python-version: "3.10"
- name: Install build dependencies
run: pip install -U hatch
- name: Build package
run: hatch build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.0.0
with:
path: dist/*
name: distribution
Expand All @@ -110,11 +110,11 @@ jobs:
needs: build-dist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.0
with:
name: distribution
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand All @@ -126,7 +126,7 @@ jobs:
needs: build-dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
- name: Get tag metadata
id: tag
run: |
Expand All @@ -141,20 +141,20 @@ jobs:
TAG_BODY="${TAG_BODY//$'\r'/'%0D'}"
echo "body=$TAG_BODY" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v0.1.15
id: create-release
with:
name: ${{ steps.tag.outputs.title }}
tag_name: ${{ steps.tag.outputs.title }}
body: ${{ steps.tag.outputs.body }}
draft: false
prerelease: false
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.0
name: Download builds
with:
name: distribution
path: dist
- uses: shogo82148/actions-upload-release-asset@v1
- uses: shogo82148/actions-upload-release-asset@v1.7.2
name: Upload release assets
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5.0.0
with:
python-version: "3.11"
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
- name: Open pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5.0.2
with:
branch: pre-commit-autoupdate
title: Upgrade pre-commit hooks revisions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-copyright-years.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
action-update-license-year:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
- uses: FantasticFiasco/action-update-license-year@v3.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/update-gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/checkout@v4.1.1
with:
token: ${{ secrets.UPDATE_GH_ACTIONS_TOKEN }}

- name: Run GitHub Actions Version Updater
uses: saadmk11/github-actions-version-updater@v0.7.2
uses: saadmk11/github-actions-version-updater@v0.8.1
with:
token: ${{ secrets.UPDATE_GH_ACTIONS_TOKEN }}

0 comments on commit ec80f63

Please sign in to comment.