Skip to content

Commit

Permalink
clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Aug 16, 2024
1 parent 365e08d commit 8dc6bb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "Action: Clear all GHA caches"
on:
workflow_dispatch:
inputs:
clear_pending:
description: Delete caches of pending workflows
clear_pending_prs:
description: Delete caches of pending PR workflows
type: boolean
default: false
clear_develop:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Clear caches
uses: ./dev-packages/clear-cache-gh-action
with:
clear_pending: ${{ inputs.clear_pending }}
clear_pending_prs: ${{ inputs.clear_pending_prs }}
clear_develop: ${{ inputs.clear_develop }}
clear_branches: ${{ inputs.clear_branches }}
github_token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions dev-packages/clear-cache-gh-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ inputs:
required: false
default: ""
description: "If set, also clear caches from non-develop branches."
clear_pending:
clear_pending_prs:
required: false
default: ""
description: "If set, also clear caches from incomplete workflow runs."
description: "If set, also clear caches from pending PR workflow runs."
workflow_name:
required: false
default: "CI: Build & Test"
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/clear-cache-gh-action/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function run() {
const githubToken = getInput('github_token');
const clearDevelop = getInput('clear_develop', { type: 'boolean' });
const clearBranches = getInput('clear_branches', { type: 'boolean', default: true });
const clearPending = getInput('clear_pending', { type: 'boolean' });
const clearPending = getInput('clear_pending_prs', { type: 'boolean' });
const workflowName = getInput('workflow_name');

const octokit = getOctokit(githubToken);
Expand Down

0 comments on commit 8dc6bb7

Please sign in to comment.