Skip to content

feat: Delete package version #42

feat: Delete package version

feat: Delete package version #42

Workflow file for this run

name: Examples
on:
workflow_call:
pull_request:
paths:
- 'docs/examples/**'
- '.github/workflows/examples.yaml'
permissions:
packages: write
contents: read
jobs:
poetry:
name: Poetry
runs-on: ubuntu-latest
timeout-minutes: 2
env:
# pyoci.com scales down to 0 replicas
# allow a longer request time if a cold start is needed
POETRY_REQUESTS_TIMEOUT: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: extractions/setup-just@v2
- run: pip install poetry
- name: Version
id: version
run: |
echo "VERSION=0.0.1+example-${{ github.run_attempt }}-poetry-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Publish
run: |
just examples poetry-publish "${{ steps.version.outputs.VERSION }}" "${{ github.actor }}" "${{ secrets.GITHUB_TOKEN }}"
- name: Install
run: |
just examples poetry-install "${{ steps.version.outputs.VERSION }}" "${{ github.actor }}" "${{ secrets.GITHUB_TOKEN }}"