add alls-green action
This commit is contained in:
+19
-10
@@ -9,16 +9,6 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
run-pre-commit:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: false
|
||||
- run: uv tool run --from pre-commit@latest --with pre-commit-uv --no-cache --python 3.13 pre-commit run --all-files
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -56,3 +46,22 @@ jobs:
|
||||
name: artifact-${{ matrix.name }}
|
||||
path: proxy_scraper_checker.dist/
|
||||
if-no-files-found: error
|
||||
check:
|
||||
if: ${{ always() && github.event_name == 'pull_request' }}
|
||||
needs:
|
||||
- pre-commit
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: re-actors/alls-green@release/v1
|
||||
with:
|
||||
jobs: ${{ toJSON(needs) }}
|
||||
pre-commit:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
enable-cache: false
|
||||
- run: uv tool run --from pre-commit@latest --with pre-commit-uv --no-cache --python 3.13 pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
Reference in New Issue
Block a user