Skip to content

Commit

Permalink
ci: Pin Python version and require Gosling.js tag (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Nov 21, 2023
1 parent 0bd9d5d commit 346a2f6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/update-gos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
inputs:
tag_name:
required: true
default: "latest"
release:
types: [published]

Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 346a2f6

Please sign in to comment.