From 9d5a05275950420135309f7dd8d6e34ccf8bf8c6 Mon Sep 17 00:00:00 2001 From: Anton Oks <2266872+AntonOks@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:54:34 +0100 Subject: [PATCH] test-docker-image.yml: Update actions/checkout to v4 and... ... make the "ls" command, which lists the "Rakudo" version directory, more explicit --- .github/workflows/test-docker-image.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-docker-image.yml b/.github/workflows/test-docker-image.yml index 3689c3a..68f568b 100644 --- a/.github/workflows/test-docker-image.yml +++ b/.github/workflows/test-docker-image.yml @@ -14,17 +14,17 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} version: ${{ steps.set-version.outputs.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: set-version run: | - RAKU_VERSION=$(ls |egrep '^[0-9]{4}.[0-9]{2}$') + RAKU_VERSION=$(ls -A -d */ | egrep '^[0-9]{4}.[0-9]{2}$') echo "::set-output name=version::$RAKU_VERSION" echo "raku version: $RAKU_VERSION" - id: set-matrix run: | - VERSION=$(ls |egrep '^[0-9]{4}.[0-9]{2}$') + VERSION=$(ls -A -d */ | egrep '^[0-9]{4}.[0-9]{2}$') cd $VERSION - LIST_DIR=$(find . -type d|perl -e ' + LIST_DIR=$(find . -type d | perl -e ' while(<>){ $_=~s/.\///g; chomp($_); @@ -46,7 +46,7 @@ jobs: VERSION: ${{needs.setup.outputs.version}} VARIANT: ${{ matrix.image_base }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build the Docker image run: docker build . --file $VERSION/$VARIANT/Dockerfile --tag ${GITHUB_REPOSITORY,,}:$GITHUB_SHA - name: Test docker image with root