Skip to content

Bump Python Package #46

Bump Python Package

Bump Python Package #46

name: Bump Python Package
on:
# Can be triggered manually
workflow_dispatch:
inputs:
package:
required: false
description: The python package to bump (all if empty)
limit:
required: true
description: Max number of PRs to open (0 for no limit)
default: 5
jobs:
bump-python-package:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Setup Node Env
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4
- name: Setup supersetbot
uses: ./.github/actions/setup-supersetbot/
- name: "Checkout `master` ( ${{ github.sha }} )"
uses: actions/checkout@v4
with:
ref: master
- name: Install pip-compile-multi
run: pip install pip-compile-multi
- name: supersetbot bump-python -p "${{ github.event.inputs.package }}"
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
PACKAGE_OPT=""
if [ -n "${{ github.event.inputs.package }}" ]; then
PACKAGE_OPT="-p ${{ github.event.inputs.package }}"
fi
supersetbot bump-python --verbose --use-current-repo $PACKAGE_OPT --limit ${{ github.event.inputs.limit }}