Skip to content

Cherry-picked commit with merge conflict #290

Cherry-picked commit with merge conflict

Cherry-picked commit with merge conflict #290

# A workflow that deletes branches of closed PRs
name: Delete old branches
on:
schedule:
# Run daily.
- cron: 30 1 * * *
workflow_dispatch:
concurrency:
group: delete-old-branches
cancel-in-progress: true
permissions:
contents: write
jobs:
delete:
if: ${{ github.repository == 'pytorch/pytorch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
<<<<<<< HEAD

Check failure on line 25 in .github/workflows/delete_old_branches.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/delete_old_branches.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
uses: actions/checkout@v3
=======
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
>>>>>>> 5729657180 ([ROCm] Specialized binary elementwise broadcast kernel for mixed dtypes with float/bfloat16/half (#2791))
with:
fetch-depth: 0
- name: Setup Python
<<<<<<< HEAD
uses: actions/setup-python@v4
=======
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
>>>>>>> 5729657180 ([ROCm] Specialized binary elementwise broadcast kernel for mixed dtypes with float/bfloat16/half (#2791))
with:
python-version: '3.11'
architecture: x64
check-latest: false
- name: Delete old branches
run: python .github/scripts/delete_old_branches.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}