Skip to content

Commit

Permalink
feat: add sort-label-keys
Browse files Browse the repository at this point in the history
Signed-off-by: kj455 <kaji.ibuki45@gmail.com>
  • Loading branch information
kj455 committed Feb 14, 2025
1 parent 33744ed commit 8864b02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: pipe-cd/actions-plan-preview@v1.7.5
with:
address: ${{ secrets.PIPECD_API_ADDRESS }}
api-key: ${{ secrets.PIPECD_PLAN_PREVIEW_API_KEY }}
api-key: ${{ secrets.PIPECD_PLAN_PREVIEW_API_KEY }}****
token: ${{ secrets.GITHUB_TOKEN }}

plan-preview-on-comment:
Expand All @@ -66,3 +66,6 @@ jobs:
| address | The API address of PipeCD's control-plane. | yes | |
| api-key | The API key with READ_WRITE role used by pipectl while communicating with PipeCD's control-plane. | yes | |
| token | The GITHUB_TOKEN secret. | yes | |
| timeout | Maximum amount of time to run. | no | 5m |
| piped-handle-timeout | Maximum amount of time to wait for piped handle the plan preview. | no | 5m |
| sort-label-keys | The application label keys to sort the results by. | no | "" |
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
description: 'Maximum amount of time to wait for piped handle the plan preview. Default is 5m.'
required: false
default: 5m
sort-label-keys:
description: 'The application label keys to sort the results by. If not specified, the results will be sorted by only PipedID and ApplicationName.'
required: false
default: ''

runs:
using: 'docker'
Expand All @@ -30,6 +34,7 @@ runs:
- token=${{ inputs.token }}
- timeout=${{ inputs.timeout }}
- piped-handle-timeout=${{ inputs.piped-handle-timeout }}
- sort-label-keys=${{ inputs.sort-label-keys }}

branding:
icon: 'eye'
Expand Down

0 comments on commit 8864b02

Please sign in to comment.