Skip to content

Commit

Permalink
Merge pull request #21 from aquaproj/feat/support-aquaproj-dir
Browse files Browse the repository at this point in the history
feat: support aquaproj directory
  • Loading branch information
suzuki-shunsuke authored Feb 3, 2023
2 parents 2413c53 + d559d5b commit 4bb09f3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4bb09f3

Please sign in to comment.