Skip to content

Commit

Permalink
CI: Fix missing version in mkrelease job
Browse files Browse the repository at this point in the history
  • Loading branch information
kiron1 committed Dec 17, 2023
1 parent 5a5046c commit e4088d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

env:
# https://github.com/bazelbuild/bazel/issues/3001
Expand Down Expand Up @@ -227,9 +228,10 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
needs:
- version
- bazel_build
- cargo_build_and_test
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
if: ${{ github.event_name == 'push' && startswith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -239,7 +241,7 @@ jobs:
name: pkg
- name: Create Release
run: |
gh release create v${{ github.event.inputs.version }} --generate-notes *.deb *.pkg *.zip
gh release create v${{ needs.version.outputs.version }} --generate-notes *.deb *.pkg *.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit e4088d5

Please sign in to comment.