File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 16
16
- staging
17
17
- production
18
18
default : ' staging'
19
+ filter :
20
+ description : ' filter by regex in staging'
21
+ type : string
22
+ default : ' .*'
23
+ required : false
19
24
20
25
21
26
jobs :
36
41
- name : List latest packages in Staging S3
37
42
if : ${{ github.event.inputs.environment == 'staging' }}
38
43
run : |
39
- TZ="UTC" aws s3 ls s3://nr-downloads-ohai-staging/infrastructure_agent/ --recursive | sort | grep -E "\.(rpm|deb)$" | tail -n ${{ github.event.inputs.count }}
44
+ TZ="UTC" aws s3 ls s3://nr-downloads-ohai-staging/infrastructure_agent/ --recursive | sort | grep -E "${{ github.event.inputs.filter }}" | grep -E " \.(rpm|deb)$" | tail -n ${{ github.event.inputs.count }}
40
45
env :
41
46
AWS_ACCESS_KEY_ID : ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
42
47
AWS_SECRET_ACCESS_KEY : ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}
You can’t perform that action at this time.
0 commit comments