Skip to content

build: replace black with ruff format #187

build: replace black with ruff format

build: replace black with ruff format #187

Workflow file for this run

name: Release to latest/edge
on:
push:
branches:
- main
paths-ignore:
- ".github/renovate*"
- ".github/workflows/release.yaml"
- ".github/workflows/renovate.yaml"
- ".github/workflows/update-libs.yaml"
- ".github/workflows/update-oci.yaml"
- ".github/workflows/publish-oci.yaml"
- ".github/workflows/build-and-test.yaml"
- ".gitignore"
- "Dockerfile"
- "rockcraft.yaml"
- "tox.ini"
jobs:
test:
uses: ./.github/workflows/build-and-test.yaml
secrets:
CHARMHUB_TOKEN: "${{ secrets.CHARMHUB_TOKEN }}"
release-to-charmhub:
name: Release to CharmHub
needs:
- test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Select charmhub channel
uses: canonical/charming-actions/channel@631c2d944da2bd12430f1f3a954c8fffcf2385cd # 2.4.0
id: channel
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@631c2d944da2bd12430f1f3a954c8fffcf2385cd # 2.4.0
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "${{ steps.channel.outputs.name }}"