mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[CI][BE] Update other actions (#149922)
Discovered by actionlint-1.7.7: - `actions/checkout@v3`->`actions/checkout@v4` - `actions/setup-python@v4` -> `actions/setup-python@v5` Pull Request resolved: https://github.com/pytorch/pytorch/pull/149922 Approved by: https://github.com/Skylion007 ghstack dependencies: #149917, #149918
This commit is contained in:
parent
535885dc8d
commit
6c7f9f7e7d
2
.github/workflows/assigntome-docathon.yml
vendored
2
.github/workflows/assigntome-docathon.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
issues: write
|
||||
steps:
|
||||
- name: Check for "/assigntome" in comment
|
||||
uses: actions/github-script@v6
|
||||
uses: actions/github-script@v7
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
|
|
|||
2
.github/workflows/build-manywheel-images.yml
vendored
2
.github/workflows/build-manywheel-images.yml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
GPU_ARCH_VERSION: ${{ matrix.cuda_version }}
|
||||
steps:
|
||||
- name: Checkout PyTorch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Calculate docker image
|
||||
if: env.WITH_PUSH == 'false'
|
||||
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
|
||||
|
|
|
|||
2
.github/workflows/build-triton-wheel.yml
vendored
2
.github/workflows/build-triton-wheel.yml
vendored
|
|
@ -264,7 +264,7 @@ jobs:
|
|||
image: continuumio/miniconda3:4.12.0
|
||||
environment: ${{ (github.event_name == 'push' && github.event.ref == 'refs/heads/main') && 'nightly-wheel-upload' || '' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Configure AWS credentials(PyTorch account) for main
|
||||
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
|
||||
|
|
|
|||
2
.github/workflows/check-labels.yml
vendored
2
.github/workflows/check-labels.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
fetch-depth: 1
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
architecture: x64
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
cache: pip
|
||||
|
|
|
|||
4
.github/workflows/cherry-pick.yml
vendored
4
.github/workflows/cherry-pick.yml
vendored
|
|
@ -14,13 +14,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repo
|
||||
id: checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GH_PYTORCHBOT_CHERRY_PICK_TOKEN }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: pip
|
||||
|
|
|
|||
2
.github/workflows/create_release.yml
vendored
2
.github/workflows/create_release.yml
vendored
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
echo "Created source archive $PT_RELEASE_FILE with content: $(ls -a "$PT_RELEASE_NAME")"
|
||||
- name: Upload source distribution for release
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ${{env.PT_RELEASE_FILE}}
|
||||
- name: Upload source distribution to GHA artifacts for release tags
|
||||
|
|
|
|||
4
.github/workflows/delete_old_branches.yml
vendored
4
.github/workflows/delete_old_branches.yml
vendored
|
|
@ -22,12 +22,12 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
architecture: x64
|
||||
|
|
|
|||
4
.github/workflows/docathon-sync-label.yml
vendored
4
.github/workflows/docathon-sync-label.yml
vendored
|
|
@ -14,11 +14,11 @@ jobs:
|
|||
pull-requests: write
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install dependencies
|
||||
|
|
|
|||
4
.github/workflows/docker-release.yml
vendored
4
.github/workflows/docker-release.yml
vendored
|
|
@ -88,7 +88,7 @@ jobs:
|
|||
# [see note: pytorch repo ref]
|
||||
# deep clone (fetch-depth 0) required for git merge-base
|
||||
- name: Checkout PyTorch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: 'recursive'
|
||||
|
|
@ -96,7 +96,7 @@ jobs:
|
|||
uses: ./.github/actions/setup-linux
|
||||
- name: Login to GitHub Container Registry
|
||||
if: ${{ env.WITH_PUSH == 'true' }}
|
||||
uses: docker/login-action@v2
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: pytorch
|
||||
|
|
|
|||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
|
|
@ -207,7 +207,7 @@ jobs:
|
|||
submodules: false
|
||||
fetch-depth: 1
|
||||
- name: Setup Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
architecture: x64
|
||||
|
|
@ -254,7 +254,7 @@ jobs:
|
|||
echo "MIN_PYTHON_VERSION=$(python3 .github/scripts/get_ci_variable.py --min-python-version)" >> "${GITHUB_OUTPUT}"
|
||||
- name: Setup Old Python version
|
||||
if: matrix.test_type == 'older_python_version'
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.6
|
||||
architecture: x64
|
||||
|
|
@ -264,7 +264,7 @@ jobs:
|
|||
**/requirements.txt
|
||||
- name: Setup Min Python version
|
||||
if: matrix.test_type != 'older_python_version'
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ steps.get-min-python-version.outputs.MIN_PYTHON_VERSION }}
|
||||
architecture: x64
|
||||
|
|
|
|||
6
.github/workflows/llm_td_retrieval.yml
vendored
6
.github/workflows/llm_td_retrieval.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
needs: get-label-type
|
||||
steps:
|
||||
- name: Clone PyTorch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: pytorch/pytorch
|
||||
fetch-depth: 0
|
||||
|
|
@ -37,14 +37,14 @@ jobs:
|
|||
uses: ./pytorch/.github/actions/setup-linux
|
||||
|
||||
- name: Clone CodeLlama
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: osalpekar/codellama
|
||||
ref: main
|
||||
path: codellama
|
||||
|
||||
- name: Clone Target Determination Code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: osalpekar/llm-target-determinator
|
||||
ref: v0.0.2
|
||||
|
|
|
|||
2
.github/workflows/nightly-s3-uploads.yml
vendored
2
.github/workflows/nightly-s3-uploads.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
fetch-depth: 1
|
||||
submodules: false
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: pip
|
||||
|
|
|
|||
4
.github/workflows/revert.yml
vendored
4
.github/workflows/revert.yml
vendored
|
|
@ -13,14 +13,14 @@ jobs:
|
|||
GH_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
id: checkout
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
architecture: x64
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run Hardcode runner-determinator script
|
||||
id: hardcode-script
|
||||
|
|
|
|||
2
.github/workflows/scorecards.yml
vendored
2
.github/workflows/scorecards.yml
vendored
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
|
|
|||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
|||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/github-script@v6
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
// Do some dumb retries on requests.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ jobs:
|
|||
environment: target-determinator-env
|
||||
steps:
|
||||
- name: Clone PyTorch
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: pytorch
|
||||
|
||||
|
|
@ -59,14 +59,14 @@ jobs:
|
|||
uses: pytorch/test-infra/.github/actions/setup-nvidia@main
|
||||
|
||||
- name: Clone CodeLlama
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: osalpekar/codellama
|
||||
ref: 1ec50e0cfc0fadc3b6ceb146617e2119ab26eb34
|
||||
path: codellama
|
||||
|
||||
- name: Clone Target Determination Code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: osalpekar/llm-target-determinator
|
||||
ref: v0.0.2
|
||||
|
|
|
|||
4
.github/workflows/trymerge.yml
vendored
4
.github/workflows/trymerge.yml
vendored
|
|
@ -16,13 +16,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repo
|
||||
id: checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
check-latest: false
|
||||
|
|
|
|||
4
.github/workflows/tryrebase.yml
vendored
4
.github/workflows/tryrebase.yml
vendored
|
|
@ -13,13 +13,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repo
|
||||
id: checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.MERGEBOT_TOKEN }}
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
architecture: x64
|
||||
|
|
|
|||
2
.github/workflows/upload-test-stats.yml
vendored
2
.github/workflows/upload-test-stats.yml
vendored
|
|
@ -48,7 +48,7 @@ jobs:
|
|||
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
||||
aws-region: us-east-1
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: pip
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
role-to-assume: arn:aws:iam::308535385114:role/gha_workflow_upload-torch-test-stats
|
||||
aws-region: us-east-1
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: pip
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
fetch-depth: 1
|
||||
submodules: false
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: pip
|
||||
|
|
|
|||
6
.github/workflows/weekly.yml
vendored
6
.github/workflows/weekly.yml
vendored
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
environment: update-commit-hash
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: update-xla-commit-hash
|
||||
|
|
@ -37,12 +37,12 @@ jobs:
|
|||
environment: update-commit-hash
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.UPDATEBOT_TOKEN }}
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
- name: Install requirements
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user