Skip to content

Commit 9e441ee

Browse files
committed
- update workflow - again
1 parent e99d252 commit 9e441ee

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy-to-wordpress.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@ name: Deploy to WordPress.org
22
on:
33
release:
44
types: [ published ]
5+
workflow_dispatch:
6+
inputs:
7+
tag:
8+
description: 'Tag to deploy'
9+
required: true
10+
default: 'latest'
11+
512
jobs:
613
tag:
714
name: New release
815
runs-on: ubuntu-latest
916
steps:
1017
- name: Checkout
1118
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
1221

1322
- name: Setup PHP
1423
uses: shivammathur/setup-php@v2
@@ -31,4 +40,3 @@ jobs:
3140
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
3241
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
3342
SLUG: wpgraphql-smart-cache
34-
DEBUG: true

0 commit comments

Comments
 (0)