Skip to content

Commit

Permalink
chore(cicd): fix typo in command (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 authored Nov 30, 2023
1 parent b234242 commit 4496b0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ jobs:
id: check-if-base-image-exists
run: |
lang=$(echo ${{ matrix.target }} | cut -d'/' -f1)
proj=$(echo ${{ matrix.target }} | cut -d'/' -f2 | rev | cut-d'-' -f2- | rev)
proj=$(echo ${{ matrix.target }} | cut -d'/' -f2 | rev | cut -d'-' -f2- | rev)
echo "base_dir=${lang}-base/${proj}"
if [ -d ${lang}-base/${proj} ]; then
echo "base=${lang}-base/${proj}" >> ${GITHUB_OUTPUT}
echo "image=${lang}-base:${proj}" | tr '[:upper:]' '[:lower:]' >> ${GITHUB_OUTPUT}
Expand Down

0 comments on commit 4496b0b

Please sign in to comment.