Skip to content

Commit 0f712e9

Browse files
committed
bump: Use workflow_dispatch
1 parent ea4fb7a commit 0f712e9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/bump.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
---
22
name: bump
33

4-
on: [repository_dispatch]
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
package_name:
8+
description: 'Package to bump'
9+
required: true
10+
package_version:
11+
description: 'Package version'
12+
required: true
513

614
jobs:
715
bump:
8-
if: github.event_name == 'repository_dispatch' && github.event.action == 'tag'
916
runs-on: ubuntu-latest
1017
env:
11-
PACKAGE_NAME: ${{ github.event.client_payload.package_name }}
12-
PACKAGE_VERSION: ${{ github.event.client_payload.package_version }}
18+
PACKAGE_NAME: ${{ github.event.inputs.package_name }}
19+
PACKAGE_VERSION: ${{ github.event.inputs.package_version }}
1320

1421
steps:
1522
- name: Information

0 commit comments

Comments
 (0)