diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e8d2823..5edfb562 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ on: push: tags: - 'v*' + - 'dockerfix' jobs: publishGitRelease: @@ -40,7 +41,17 @@ jobs: IMAGE_NAME: mikefarah/yq runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Get latest release tag + uses: oprypin/find-latest-tag@v1 + with: + repository: mikefarah/yq # The repository to scan. + releases-only: true # We know that all relevant tags have a GitHub release for them. + id: yq + + - name: Clone source code + uses: actions/checkout@v2 + with: + ref: ${{ steps.yq.outputs.tag }} - name: Set up QEMU uses: docker/setup-qemu-action@v1