Skip to content

Commit 94c689a

Browse files
add filter to package show
1 parent 2f9121b commit 94c689a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/repository_latest_added_packages.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
- staging
1717
- production
1818
default: 'staging'
19+
filter:
20+
description: 'filter by regex in staging'
21+
type: string
22+
default: '.*'
23+
required: false
1924

2025

2126
jobs:
@@ -36,7 +41,7 @@ jobs:
3641
- name: List latest packages in Staging S3
3742
if: ${{ github.event.inputs.environment == 'staging' }}
3843
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 }}
4045
env:
4146
AWS_ACCESS_KEY_ID: ${{ secrets.OHAI_AWS_ACCESS_KEY_ID_STAGING }}
4247
AWS_SECRET_ACCESS_KEY: ${{ secrets.OHAI_AWS_SECRET_ACCESS_KEY_STAGING }}

0 commit comments

Comments
 (0)