Skip to content

Commit 8557aeb

Browse files
fern-supportjsklan
andauthored
add workflow dispatch option for republishing if publish fails (#205)
Co-authored-by: jsklan <[email protected]>
1 parent c9d24e8 commit 8557aeb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CI
22

3-
on: [push]
3+
on:
4+
push:
5+
workflow_dispatch:
46

57
# Cancel previous workflows on previous push
68
concurrency:
@@ -72,7 +74,7 @@ jobs:
7274

7375
gem-publish:
7476
runs-on: ubuntu-latest
75-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
77+
if: (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) || github.event_name == 'workflow_dispatch'
7678
steps:
7779
- name: Checkout repository
7880
uses: actions/checkout@v4

0 commit comments

Comments
 (0)