diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c3d5eff..6c5ccb7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.6. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.6 - name: Checkout code. uses: actions/checkout@v4 - name: Compile. diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 4552b94..60f537b 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.6. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.6 - name: Checkout code. uses: actions/checkout@v4 with: diff --git a/.github/workflows/git-history.yml b/.github/workflows/git-history.yml index eb7f464..08b91db 100644 --- a/.github/workflows/git-history.yml +++ b/.github/workflows/git-history.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.6. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.6 - name: Checkout code. uses: actions/checkout@v4 with: diff --git a/.github/workflows/github-actions-workflows.yml b/.github/workflows/github-actions-workflows.yml index 5d18dd4..14c16a3 100644 --- a/.github/workflows/github-actions-workflows.yml +++ b/.github/workflows/github-actions-workflows.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.6. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.6 - name: Checkout code. uses: actions/checkout@v4 - name: Check GitHub Actions workflows linting. @@ -22,7 +24,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.6. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.6 - name: Checkout code. uses: actions/checkout@v4 - name: Check formatting.