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 }}