Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

0.0.54

0.0.54 #11

name: "Release: Pipeline"
on:
release:
types:
- released
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true
env:
DOWNSTREAM_REPO: label-studio
DEPENDENCY_NAME: label-studio-converter
jobs:
build-pypi:
name: "Build"
permissions:
contents: write
uses: ./.github/workflows/build_pypi.yml
with:
version: ${{ github.ref_name }}
ref: ${{ github.ref_name }}
upload_to_pypi: true
release-id: ${{ github.event.release.id }}
secrets: inherit
create-ls-pr:
name: "Create LS PR"
runs-on: ubuntu-latest
needs:
- build-pypi
steps:
- uses: hmarr/debug-action@v2.1.0
- name: DispatchEvent
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GIT_PAT }}
script: |
const { repo, owner } = context.repo;
await github.rest.repos.createDispatchEvent({
owner: owner,
repo: '${{ env.DOWNSTREAM_REPO }}',
event_type: 'upstream_pip_dependency_update',
client_payload: {
dependency_name: '${{ env.DEPENDENCY_NAME }}',
version: '${{ github.ref_name }}',
}
});