From 4b043a267efef5215d80f9d7f29e4339abeeaaf5 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Fri, 3 Feb 2023 10:16:38 +0900 Subject: [PATCH 1/2] feat: support aquaproj directory - https://github.com/aquaproj/aqua/pull/1615 --- action.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/action.yaml b/action.yaml index c77ca2d..e1d64d5 100644 --- a/action.yaml +++ b/action.yaml @@ -26,14 +26,14 @@ runs: id: find working-directory: ${{inputs.working_directory}} run: | - if [ -f aqua-checksums.json ]; then - echo "checksum_file=aqua-checksums.json" >> $GITHUB_OUTPUT - elif [ -f .aqua-checksums.json ]; then - echo "checksum_file=.aqua-checksums.json" >> $GITHUB_OUTPUT - else - echo "::error file=aqua-checksums.json::Both aqua-checksums.json and .aqua-checksums.json aren't found" - exit 1 - fi + for p in aqua-checksums.json .aqua-checksums.json aquaproj/aqua-checksums.json aquaproj/.aqua-checksums.json .aquaproj/aqua-checksums.json .aquaproj/.aqua-checksums.json; do + if [ -f "$p" ]; then + echo "checksum_file=$p" >> $GITHUB_OUTPUT + exit 0 + fi + done + echo "::error ::aqua checksum json file isn't found" + exit 1 - shell: bash working-directory: ${{inputs.working_directory}} run: git add ${{steps.find.outputs.checksum_file}} From d559d5b1add0391368745f0343271162cdbef2a9 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Fri, 3 Feb 2023 10:23:00 +0900 Subject: [PATCH 2/2] fix: fix checksum file path --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index e1d64d5..51e89c5 100644 --- a/action.yaml +++ b/action.yaml @@ -62,7 +62,7 @@ runs: fi ghcp commit -r "$GITHUB_REPOSITORY" -b "$branch" \ -m "chore(aqua): update $CHECKSUM_FILE" \ - aqua-checksums.json + "$CHECKSUM_FILE" exit 1 fi env: