From 51f56e1476324ce9a5b7410a4463fbe7e05fdfe9 Mon Sep 17 00:00:00 2001 From: Dennis Schiese Date: Tue, 18 Jun 2024 14:29:45 +0200 Subject: [PATCH] Adjust action --- .github/workflows/docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1b03912..cb5bc33 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,9 +15,9 @@ jobs: - uses: actions/checkout@v4 - name: Save tag to file if release if: startsWith(github.ref, 'refs/tags/') + run: echo ${{ github.ref_name }} > VERSION.txt - name: Echo run: echo ${{ github.workspace }} - run: echo ${{ github.ref_name }} > VERSION.txt - name: Build the Docker image for temporary use only if: ${{ ! startsWith(github.ref, 'refs/tags/') }} run: docker build . --file Dockerfile --tag tmp:latest