Skip to content

Commit 9a3a0a7

Browse files
committed
allow workflow_trigger to push assets
1 parent 8bc161c commit 9a3a0a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/asset-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77
inputs:
88
tag:
99
description: 'Tag to generate documentation for'
10+
required: true
11+
dry-run:
12+
description: 'does not push the assets when true'
1013
required: false
14+
default: "true"
1115
jobs:
1216
asset:
1317
runs-on: ${{ matrix.operating-system }}
@@ -52,7 +56,7 @@ jobs:
5256

5357
- name: Upload Release Archive
5458
uses: softprops/action-gh-release@v2
55-
if: github.ref_type == 'tag'
59+
if: github.ref_type == 'tag' || inputs.dry-run != 'true'
5660
with:
5761
files: |
5862
./google-api-php-client-${{ inputs.tag || steps.tagName.outputs.tag }}-PHP${{ matrix.php }}.zip

0 commit comments

Comments
 (0)