mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
chores: update actions to nodejs 20
Also replaces rickstaa/action-black by psf/black
This commit is contained in:
parent
d0089dbdf9
commit
1b28bca0c0
3 changed files with 10 additions and 10 deletions
8
.github/workflows/autoblack.yml
vendored
8
.github/workflows/autoblack.yml
vendored
|
@ -8,16 +8,16 @@ jobs:
|
||||||
name: Check / auto apply black
|
name: Check / auto apply black
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Check files using the black formatter
|
- name: Check files using the black formatter
|
||||||
uses: rickstaa/action-black@v1
|
uses: psf/black@v24
|
||||||
id: action_black
|
id: black
|
||||||
with:
|
with:
|
||||||
black_args: "."
|
black_args: "."
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: steps.action_black.outputs.is_formatted == 'true'
|
if: steps.action_black.outputs.is_formatted == 'true'
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
title: "Format Python code with Black"
|
title: "Format Python code with Black"
|
||||||
|
|
4
.github/workflows/i18n.yml
vendored
4
.github/workflows/i18n.yml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: Autoreformat locale files
|
name: Autoreformat locale files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Apply reformating scripts
|
- name: Apply reformating scripts
|
||||||
id: action_reformat
|
id: action_reformat
|
||||||
run: |
|
run: |
|
||||||
|
@ -18,7 +18,7 @@ jobs:
|
||||||
git diff -w --exit-code
|
git diff -w --exit-code
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
title: "Reformat locale files"
|
title: "Reformat locale files"
|
||||||
|
|
8
.github/workflows/tox.yml
vendored
8
.github/workflows/tox.yml
vendored
|
@ -14,9 +14,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.9]
|
python-version: [3.9]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install apt dependencies
|
- name: Install apt dependencies
|
||||||
|
@ -34,9 +34,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.9]
|
python-version: [3.9]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install tox
|
- name: Install tox
|
||||||
|
|
Loading…
Reference in a new issue