From f38b12d55b595a2e1c3d38e79af5fd3f8f6cd60c Mon Sep 17 00:00:00 2001 From: TwiN Date: Sat, 18 Jun 2022 13:06:24 -0400 Subject: [PATCH] refactor(ci): Clean up steps --- .github/workflows/build.yml | 6 ++---- .github/workflows/publish-latest.yml | 3 +-- .github/workflows/publish-release.yml | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df5a258f..1c183b14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,12 +14,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/setup-go@v3 with: go-version: 1.18 - - name: Check out code into the Go module directory - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: Build binary to make sure it works run: go build -mod vendor - name: Test diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 9da12bfd..bbf0b69f 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -11,8 +11,7 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} timeout-minutes: 45 steps: - - name: Check out code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: Get image repository run: echo IMAGE_REPOSITORY=$(echo ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV - name: Set up QEMU diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 0ea7e381..512629cb 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -8,8 +8,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 45 steps: - - name: Check out code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: Get image repository run: echo IMAGE_REPOSITORY=$(echo ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV - name: Get the release