fix typo and update var name
Some checks failed
/ validate (push) Successful in 10s
/ build (push) Failing after 17s

This commit is contained in:
Ludovic Cartier
2025-07-21 23:10:09 +02:00
parent 574c6aa12d
commit ad43cd7ec3
3 changed files with 9 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
build: ${{ steps.new_version.outputs.build }} build: ${{ steps.new_version.outputs.build }}
tag: ${{ steps.new_version.outputs.tag }} version: ${{ steps.new_version.outputs.tag }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -26,7 +26,7 @@ jobs:
if awk "BEGIN {exit !($LATEST > $CURRENT)}"; then if awk "BEGIN {exit !($LATEST > $CURRENT)}"; then
echo $LATEST > .version echo $LATEST > .version
echo "build=true" >> $GITHUB_OUTPUT echo "build=true" >> $GITHUB_OUTPUT
echo "tag=$LATEST" >> $GITHUB_OUTPUT echo "version=$LATEST" >> $GITHUB_OUTPUT
else else
echo "build=false" >> $GITHUB_OUTPUT echo "build=false" >> $GITHUB_OUTPUT
fi fi
@@ -45,8 +45,8 @@ jobs:
- name: DEBUG - build value - name: DEBUG - build value
run: echo "${{ steps.new_version.outputs.build }}" run: echo "${{ steps.new_version.outputs.build }}"
- name: DEBUG - tag value - name: DEBUG - version value
run: echo "${{ steps.new_version.outputs.tag }}" run: echo "${{ steps.new_version.outputs.version }}"
build: build:
needs: validate needs: validate
@@ -55,12 +55,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
ref: '${{ needs.validate.outputs.tag }}'
- name: Set version to env vars - name: Set version to env vars
run: | run: |
echo "VERSION=`cat .version`" >> $GITHUB_ENV echo "VERSION=`cat .version`" >> $GITHUB_ENV
echo "version: $VERSION"
echo "${{ needs.validate.outputs.version }}"
- name: Setup go - name: Setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
@@ -85,7 +85,6 @@ jobs:
- name: Prepare amd64 control file - name: Prepare amd64 control file
run: | run: |
#VERSION=`cat .version`
echo "Package: varnish-exporter" > varnish-exporter-amd64/DEBIAN/control echo "Package: varnish-exporter" > varnish-exporter-amd64/DEBIAN/control
echo "Version: $VERSION" >> varnish-exporter-amd64/DEBIAN/control echo "Version: $VERSION" >> varnish-exporter-amd64/DEBIAN/control
echo "Maintainer: Ludovic Cartier <ludovic.cartier@alterway.fr>" >> varnish-exporter-amd64/DEBIAN/control echo "Maintainer: Ludovic Cartier <ludovic.cartier@alterway.fr>" >> varnish-exporter-amd64/DEBIAN/control
@@ -108,15 +107,8 @@ jobs:
- name: Create release - name: Create release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
i with: with:
tag_name: '${{ needs.validate.outputs.tag }}' tag_name: "${{ needs.validate.outputs.version }}"
files: |- files: |-
bin/** bin/**
token: "${{ secrets.RELEASE_TOKEN }}" token: "${{ secrets.RELEASE_TOKEN }}"
# uses: https://gitea.com/actions/release-action@main
# with:
# draft: false
# prerelease: false
# files: |-
# bin/**

View File

@@ -1 +1 @@
1.6.1 1.1.1