From ea025054a3852aedcf7c4f525307af562d1c35d8 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Mon, 7 Oct 2024 16:09:15 +0100 Subject: [PATCH] ci: converting to earthly/actions-setup@v1 --- .github/workflows/continuous-integration.yml | 4 +++- .github/workflows/conventional-commits.yml | 4 +++- .github/workflows/git-history.yml | 4 +++- .github/workflows/github-actions-workflows.yml | 8 ++++++-- 4 files changed, 15 insertions(+), 5 deletions(-) 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.