Skip to content

Commit

Permalink
update manual input the version
Browse files Browse the repository at this point in the history
  • Loading branch information
zengkid committed Dec 29, 2023
1 parent 9bd6064 commit d8155cd
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/releasebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@ on:
push:
tags:
- 'v*'
# on:
# workflow_dispatch

on:
workflow_dispatch
inputs:
tag:
description: "The tag version you want to build"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set env
- name: Set version
run: |
echo "VYOS_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
if [[ -z "${{ github.event.inputs.tag }}" ]]; then
echo "VYOS_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "VYOS_VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
fi
- name: Pull vyos-build docker image
run: |
Expand Down

0 comments on commit d8155cd

Please sign in to comment.