diff --git a/.gitea/workflows/varnish-exporter.yml b/.gitea/workflows/varnish-exporter.yml index f6df773..60e5af5 100644 --- a/.gitea/workflows/varnish-exporter.yml +++ b/.gitea/workflows/varnish-exporter.yml @@ -12,6 +12,7 @@ jobs: runs-on: ubuntu-latest outputs: build: ${{ steps.new_version.outputs.build }} + tag: ${{ steps.new_version.outputs.tag }} steps: - uses: actions/checkout@v4 @@ -25,6 +26,7 @@ jobs: if awk "BEGIN {exit !($LATEST > $CURRENT)}"; then echo $LATEST > .version echo "build=true" >> $GITHUB_OUTPUT + echo "tag=$LATEST" >> $GITHUB_OUTPUT else echo "build=false" >> $GITHUB_OUTPUT fi @@ -40,16 +42,20 @@ jobs: tagging_message: '${{ env.VERSION }}' push_options: '--force' - - name: debug output value + - name: DEBUG: build value run: echo "${{ steps.new_version.outputs.build }}" + - name: DEBUG: tag value + run: echo "${{ steps.new_version.outputs.tag }}" + build: - #needs: validate - #if: needs.validate.outputs.build == 'true' + needs: validate + if: needs.validate.outputs.build == 'true' timeout-minutes: 2 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + ref: '${{ jobs.validate.ouputs.tag }}' - name: Set version to env vars run: | diff --git a/.version b/.version index 9c6d629..d0149fe 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.6.1 +1.3.4