Skip to content

Commit

Permalink
chore: fix clear-action script
Browse files Browse the repository at this point in the history
  • Loading branch information
odinr committed Aug 15, 2023
1 parent 0757aa9 commit cc9fd1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/actions/clear-cache/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
inputs:
repo:
description: 'Select another repository for finding actions cache'
required: false
default: ${{ github.repository }}
branch:
description: 'Filter by branch'
Expand All @@ -12,7 +11,11 @@ inputs:
runs:
using: composite
steps:
- run: ${{ github.action_path }}/clear-cache.sh -R ${{ inputs.repo }} -B ${{ inputs.branch }} -F ${{ inputs.filter }}
- run: |-
${{ github.action_path }}/clear-cache.sh
-R ${{ inputs.repo || "''" }}
-B ${{ inputs.branch || "''" }}
-F ${{ inputs.filter || "''" }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/actions/clear-cache/clear-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TOTAL=0

set +e

echo "Repo: ${BRANCH:-[not provided, using current]}"
echo "Repo: ${REPO:-[not provided, using current]}"
echo "Branch: ${BRANCH:-[no branch]}"
echo "Filter: ${FILTER:-[no filter]}"

Expand Down

0 comments on commit cc9fd1b

Please sign in to comment.