mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-31 12:20:26 +08:00
CI: update GitHub Actions versions (#7249)
Co-authored-by: pngwn <hello@pngwn.io>
This commit is contained in:
parent
9fa0a1ce1c
commit
5d24c356f8
2
.github/actions/changes/action.yml
vendored
2
.github/actions/changes/action.yml
vendored
@ -51,7 +51,7 @@ runs:
|
||||
uses: "gradio-app/github/actions/find-pr@main"
|
||||
with:
|
||||
github_token: ${{ inputs.token }}
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ steps.pr.outputs.source_repo }}
|
||||
ref: ${{ steps.pr.outputs.source_branch }}
|
||||
|
2
.github/workflows/delete-stale-spaces.yml
vendored
2
.github/workflows/delete-stale-spaces.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
delete-old-spaces:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
6
.github/workflows/deploy+test-visual.yml
vendored
6
.github/workflows/deploy+test-visual.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
labels: ${{ steps.changes.outputs.labels }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
storybook_url: ${{ steps.publish-chromatic.outputs.storybookUrl }}
|
||||
build_url: ${{ steps.publish-chromatic.outputs.buildUrl }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ needs.changes.outputs.sha }}
|
||||
@ -123,4 +123,4 @@ jobs:
|
||||
|
||||
# visual~success~${{ needs.chromatic-deployment.outputs.changes }}~${{ needs.chromatic-deployment.outputs.errors }}~${{ needs.chromatic-deployment.outputs.build_url }}
|
||||
|
||||
# visual~failure~0~0~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
# visual~failure~0~0~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
|
6
.github/workflows/deploy-spaces.yml
vendored
6
.github/workflows/deploy-spaces.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
merge_sha: ${{ steps.changes.outputs.merge_sha }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -53,7 +53,7 @@ jobs:
|
||||
if: ${{ needs.changes.outputs.should_run == 'true' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
@ -150,4 +150,4 @@ jobs:
|
||||
gh_token: ${{ secrets.COMMENT_TOKEN }}
|
||||
with:
|
||||
pr_number: ${{ needs.changes.outputs.pr_number }}
|
||||
message: spaces~failure~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
message: spaces~failure~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
|
4
.github/workflows/deploy-website.yml
vendored
4
.github/workflows/deploy-website.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
||||
found_pr: ${{ steps.changes.outputs.found_pr }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
outputs:
|
||||
vercel_url: ${{ steps.output_url.outputs.vercel_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
|
4
.github/workflows/generate-changeset.yml
vendored
4
.github/workflows/generate-changeset.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
||||
skipped: ${{ steps.version.outputs.skipped }}
|
||||
comment_url: ${{ steps.version.outputs.comment_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ needs.get-pr.outputs.source_repo }}
|
||||
ref: ${{ needs.get-pr.outputs.source_branch }}
|
||||
@ -90,4 +90,4 @@ jobs:
|
||||
gh_token: ${{ secrets.COMMENT_TOKEN }}
|
||||
with:
|
||||
pr_number: ${{ needs.get-pr.outputs.pr_number }}
|
||||
message: changes~failure~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
message: changes~failure~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
|
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: checkout repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
@ -74,4 +74,4 @@ jobs:
|
||||
- name: trigger spaces deploy workflow
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.COMMENT_TOKEN }}
|
||||
run: gh workflow run build-pr.yml
|
||||
run: gh workflow run build-pr.yml
|
||||
|
6
.github/workflows/test-functional.yml
vendored
6
.github/workflows/test-functional.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
source_repo: ${{ steps.changes.outputs.source_repo }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -43,7 +43,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
@ -82,4 +82,4 @@ jobs:
|
||||
sha: ${{ needs.changes.outputs.sha }}
|
||||
name: "test / functional"
|
||||
result: ${{ job.status }}
|
||||
job_id: "test-functional"
|
||||
job_id: "test-functional"
|
||||
|
4
.github/workflows/test-hygiene.yml
vendored
4
.github/workflows/test-hygiene.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
merge_sha: ${{ steps.changes.outputs.merge_sha }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -42,7 +42,7 @@ jobs:
|
||||
needs: changes
|
||||
if: needs.changes.outputs.should_run == 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
|
4
.github/workflows/test-python.yml
vendored
4
.github/workflows/test-python.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
||||
labels: ${{ steps.changes.outputs.labels }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -58,7 +58,7 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
|
5
.github/workflows/tests-js.yml
vendored
5
.github/workflows/tests-js.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
||||
source_repo: ${{ steps.changes.outputs.source_repo }}
|
||||
mergeable: ${{ steps.changes.outputs.mergeable }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: "gradio-app/gradio/.github/actions/changes@main"
|
||||
id: changes
|
||||
with:
|
||||
@ -49,7 +49,7 @@ jobs:
|
||||
name: test-js
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.merge_sha }}
|
||||
repository: ${{ needs.changes.outputs.mergeable == 'true' && github.repository || needs.changes.outputs.source_repo }}
|
||||
@ -80,4 +80,3 @@ jobs:
|
||||
name: "test / js"
|
||||
result: ${{ job.status }}
|
||||
job_id: "test-js"
|
||||
|
Loading…
x
Reference in New Issue
Block a user