From 346a2f6652f51d69198f480ee27f0754a6b11027 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Tue, 21 Nov 2023 12:56:53 -0500 Subject: [PATCH] ci: Pin Python version and require Gosling.js tag (#995) --- .github/workflows/update-gos.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-gos.yml b/.github/workflows/update-gos.yml index 00bd52b7..98534ca6 100644 --- a/.github/workflows/update-gos.yml +++ b/.github/workflows/update-gos.yml @@ -5,7 +5,6 @@ on: inputs: tag_name: required: true - default: "latest" release: types: [published] @@ -26,11 +25,7 @@ jobs: id: tag run: | if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then - if [ "${{ github.event.inputs.tag_name }}" == "latest" ]; then - echo "tag_name=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT - else - echo "tag_name=${{ github.event.inputs.tag_name }}" >> $GITHUB_OUTPUT - fi + echo "tag_name=${{ github.event.inputs.tag_name }}" >> $GITHUB_OUTPUT elif [ "${{ github.event_name }}" == "release" ]; then echo "tag_name=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT else @@ -40,7 +35,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.11" - run: | python -m pip install . python tools/generate_schema_wrapper.py ${{ steps.tag.outputs.tag_name }}