From a1fd7c1f4ad304fecca404f64dfff7976527d091 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Thu, 20 Mar 2025 06:36:17 +0000 Subject: [PATCH] Pin github actions versions --- .../workflows/publish_pypi_thirdweb_ai.yaml | 19 ++++++++----------- .../workflows/publish_pypi_thirdweb_mcp.yaml | 19 ++++++++----------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish_pypi_thirdweb_ai.yaml b/.github/workflows/publish_pypi_thirdweb_ai.yaml index b3d6bdc..422d709 100644 --- a/.github/workflows/publish_pypi_thirdweb_ai.yaml +++ b/.github/workflows/publish_pypi_thirdweb_ai.yaml @@ -17,19 +17,16 @@ jobs: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Install Poetry + run: pipx install poetry==1.8.5 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: '3.10' - - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - version: latest - virtualenvs-create: true - virtualenvs-in-project: true + cache: 'poetry' - name: Install dependencies run: poetry install --only main @@ -38,8 +35,8 @@ jobs: run: poetry build - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@release/76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 with: user: __token__ password: ${{ secrets.PYPI_API_KEY }} - packages-dir: python/thirdweb-ai/dist/ \ No newline at end of file + packages-dir: python/thirdweb-ai/dist/ diff --git a/.github/workflows/publish_pypi_thirdweb_mcp.yaml b/.github/workflows/publish_pypi_thirdweb_mcp.yaml index 7d6c0e2..d237cd5 100644 --- a/.github/workflows/publish_pypi_thirdweb_mcp.yaml +++ b/.github/workflows/publish_pypi_thirdweb_mcp.yaml @@ -17,19 +17,16 @@ jobs: id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Install Poetry + run: pipx install poetry==1.8.5 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 with: python-version: '3.10' - - - name: Install Poetry - uses: snok/install-poetry@v1 - with: - version: latest - virtualenvs-create: true - virtualenvs-in-project: true + cache: 'poetry' - name: Install dependencies run: poetry install --only main @@ -38,8 +35,8 @@ jobs: run: poetry build - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@release/76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 with: user: __token__ password: ${{ secrets.PYPI_API_KEY }} - packages-dir: python/thirdweb-mcp/dist/ \ No newline at end of file + packages-dir: python/thirdweb-mcp/dist/