Skip to content

fix: to be treated as booleans, we must use inputs vs gitbub.event #981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/publish-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
description: 'Tag to use for release'
required: true
prerelease:
description: 'Is this a pre-release'
description: 'Publish as pre-release'
type: boolean
required: true
default: false
Expand Down Expand Up @@ -45,21 +45,21 @@ jobs:
printf "$OPAM_PUBLISH_TOKEN" > ~/.opam/plugins/opam-publish/vscoqbot.token

- name: Publish release on opam
if: ${{ !github.event.inputs.prerelease }}
if: ${{ !inputs.prerelease }}
run: |
eval $(opam env)
VERSION_SLUG="${{ github.event.inputs.tag }}"
VERSION_SLUG="${{ inputs.tag }}"
VERSION="${VERSION_SLUG#v}"
cd language-server
git config --global user.name vscoqbot
git config --global user.email [email protected]
opam publish --no-confirmation --no-browser -v $VERSION https://github.com/coq/vscoq/releases/download/$VERSION_SLUG/vscoq-language-server-$VERSION.tar.gz vscoq-language-server.opam

- name: Publish prerelease on coq/opam
if: ${{ github.event.inputs.prerelease }}
if: ${{ inputs.prerelease }}
run: |
eval $(opam env)
VERSION_SLUG="${{ github.event.inputs.tag }}"
VERSION_SLUG="${{ inputs.tag }}"
VERSION="${VERSION_SLUG#v}"
cd language-server
git config --global user.name vscoqbot
Expand Down
Loading