Skip to content

Commit 903a2d9

Browse files
committed
[skip ci] allow run via dispatch, artifact id as input
1 parent add3747 commit 903a2d9

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/assertion.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: Generate and Sign Assertion Document
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
packageVersion:
7+
description: 'Agent version'
8+
type: string
9+
required: true
10+
artifactId:
11+
description: 'Artifact ID'
12+
type: string
13+
required: false
414
workflow_call:
515
inputs:
616
packageVersion:
@@ -40,12 +50,20 @@ jobs:
4050
go-version-file: 'go.mod'
4151
cache: false
4252

43-
- name: Download nginx-agent binaries
53+
- name: Download nginx-agent binary artifacts
54+
if: ${{ inputs.artifactId == '' }}
4455
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # 6.0.0
4556
with:
4657
name: nginx-agent-binaries-${{ inputs.packageVersion }}-${{ matrix.osarch }}
4758
path: binaries
4859

60+
- name: Download nginx-agent binary artifact by ID
61+
if: ${{ inputs.artifactId != '' }}
62+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # 6.0.0
63+
with:
64+
artifact-ids: '${{ inputs.artifactId }}'
65+
path: binaries
66+
4967
- name: Gather build dependencies
5068
id: godeps
5169
run: |
@@ -83,4 +101,3 @@ jobs:
83101
uses: nginxinc/compliance-rules/.github/actions/sign@83e452166aaf0ad8f07caf91a4f1f903b3dea1e6 # v0.3.0
84102
with:
85103
assertion-doc: ${{ steps.assertiondoc.outputs.assertion-document-path }}
86-
path: ./artifacts

0 commit comments

Comments
 (0)