Skip to content

Commit

Permalink
test-docker-image.yml: Update actions/checkout to v4 and...
Browse files Browse the repository at this point in the history
... make the "ls" command, which lists the "Rakudo" version directory, more explicit
  • Loading branch information
AntonOks authored Mar 30, 2024
1 parent 8eb5bec commit 9d5a052
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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($_);
Expand All @@ -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
Expand Down

0 comments on commit 9d5a052

Please sign in to comment.