From cc9fd1bfa6dfa97a9e96ab87eb639971b91cd45f Mon Sep 17 00:00:00 2001 From: Odin Thomas Rochmann Date: Wed, 16 Aug 2023 01:19:02 +0200 Subject: [PATCH] chore: fix clear-action script --- .github/workflows/actions/clear-cache/action.yml | 7 +++++-- .github/workflows/actions/clear-cache/clear-cache.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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]}"