Skip to content

chore: pin matplotlib to prevent compatibility issue with matplotlabs… #137

chore: pin matplotlib to prevent compatibility issue with matplotlabs…

chore: pin matplotlib to prevent compatibility issue with matplotlabs… #137

Workflow file for this run

name: Release
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
outputs:
should-publish: ${{ steps.tag_check.outputs.exists == 'false' }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Read project version
id: project_version
uses: maybe-hello-world/pyproject-check-version@v4
with:
pyproject-path: pyproject.toml
- name: Check if tag already exists
id: tag_check
env:
TAG: ${{ steps.project_version.outputs.local_version }}
run: |
if git rev-parse "refs/tags/${TAG}" >/dev/null 2>&1; then
echo "Tag ${TAG} already exists — skipping release."
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Create GitHub Release
if: steps.tag_check.outputs.exists == 'false'
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.project_version.outputs.local_version }}
name: Release ${{ steps.project_version.outputs.local_version }}
draft: false
prerelease: false
publish:

Check failure on line 54 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 54, Col: 3): Error calling workflow 'mims-harvard/OptimusKG/.github/workflows/publish-pypi.yml@59ed98febe0fa3ef5eecc98ebc7f989d65e3459b'. The nested job 'publish' is requesting 'id-token: write', but is only allowed 'id-token: none'.
name: Publish client
needs: release
if: needs.release.outputs.should-publish == 'true'
uses: ./.github/workflows/publish-pypi.yml
with:
package-dir: packages/optimuskg