diff --git a/.github/workflows/actions/clear-cache/action.yml b/.github/workflows/actions/clear-cache/action.yml index 1542e0383..1e1c89b7a 100644 --- a/.github/workflows/actions/clear-cache/action.yml +++ b/.github/workflows/actions/clear-cache/action.yml @@ -1,7 +1,6 @@ inputs: repo: description: 'Select another repository for finding actions cache' - required: false default: ${{ github.repository }} branch: description: 'Filter by branch' @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/actions/clear-cache/clear-cache.sh b/.github/workflows/actions/clear-cache/clear-cache.sh index 87bbaa289..9994e2f47 100755 --- a/.github/workflows/actions/clear-cache/clear-cache.sh +++ b/.github/workflows/actions/clear-cache/clear-cache.sh @@ -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]}"