Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit c6958bd

Browse files
authored
Update publish.yml
1 parent 0de8e9e commit c6958bd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
tags:
77
- v*.*.*
88
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: "Tag to rebuild"
12+
default: "v0.0.0"
913

1014
env:
1115
REGISTRY: ghcr.io
@@ -61,7 +65,13 @@ jobs:
6165
git config --global core.eol lf
6266
6367
- uses: actions/checkout@v3
64-
68+
if: ${{ github.event.inputs.tag }} == "v0.0.0"
69+
with:
70+
ref: ${{ github.event.inputs.tag }}
71+
72+
- uses: actions/checkout@v3
73+
if: ${{ github.event.inputs.tag }} != "v0.0.0"
74+
6575
- name: Get Rust toolchain version from rust-toolchain.toml
6676
id: getrustver
6777
run: |

0 commit comments

Comments
 (0)