Skip to content

Check v13 assets in pypi #283

Check v13 assets in pypi

Check v13 assets in pypi #283

Workflow file for this run

name: "Backport"
on:
pull_request_target:
types: [closed, labeled]
branches:
- main
jobs:
backport:
if: |
github.repository_owner == 'cupy' &&
github.event.pull_request.merged == true &&
(
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'to-be-backported')) ||
(github.event.action == 'labeled' && github.event.label.name == 'to-be-backported')
)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: setup backport
run: |
pip install pygithub
git config --global user.name "CuPy Automatic Backport"
git config --global user.email "[email protected]"
git clone https://github.com/cupy/backport.git
- name: run backport
env:
BACKPORT_GITHUB_TOKEN: ${{secrets.BACKPORT_TOKEN}}
run: |
cd backport
echo -e "machine github.com\nlogin chainer-ci\npassword ${{secrets.BACKPORT_TOKEN}}" > ~/.netrc
python backport.py --repo cupy-release-tools --pr ${{github.event.number}} --https --bot