From a045cc7fff60f055908a16ed697a395256bc6c7d Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Mon, 7 Oct 2024 16:38:19 +0100 Subject: [PATCH] ci: converting to earthly/actions-setup@v1 (#67) --- .github/workflows/continuous-integration.yml | 12 +++++++++--- .github/workflows/conventional-commits.yml | 4 +++- .github/workflows/git-history.yml | 4 +++- .github/workflows/github-actions-workflows.yml | 8 ++++++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index edfc33c..767b22d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -15,7 +15,9 @@ jobs: language: [shell] steps: - name: Download Earthly v0.8.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - name: Checkout code. uses: actions/checkout@v4 - name: Check formatting. @@ -28,7 +30,9 @@ jobs: language: [shell] steps: - name: Download Earthly v0.8.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - name: Checkout code. uses: actions/checkout@v4 - name: Check linting. @@ -38,7 +42,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Earthly v0.8.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - name: Checkout code. uses: actions/checkout@v4 - name: End to end test. diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index 8d351a3..16fafe3 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.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - name: Checkout code. uses: actions/checkout@v4 with: diff --git a/.github/workflows/git-history.yml b/.github/workflows/git-history.yml index d615d1d..2f5d1d7 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.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - 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 0047688..34e9b38 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.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - 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.12. - run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + uses: earthly/actions-setup@v1 + with: + version: v0.8.12 - name: Checkout code. uses: actions/checkout@v4 - name: Check formatting.