Skip to content

Commit

Permalink
ci: add workflow dispatch tag var
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechu-optimizely committed Nov 7, 2024
1 parent 3abcf56 commit 52c5a99
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/csharp_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
on:
release:
types: [ published ] # Trigger on published pre-releases and releases
workflow_dispatch:
workflow_dispatch:
inputs:
tag:
description: 'Tag name'
required: true
default: 'v4.1.0'

jobs:
variables:
name: Set Variables
runs-on: ubuntu-latest
env:
TAG: ${{ github.event.release.tag_name }}
TAG: ${{ github.event.release.tag_name || github.event.inputs.tag }}
steps:
- name: Extract semantic version from tag
id: set_version
Expand Down

0 comments on commit 52c5a99

Please sign in to comment.