diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index 846eb76..6f3271a 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -7,22 +7,21 @@ on: jobs: init: runs-on: ubuntu-latest + outputs: + iventoy: ${{ steps.iventoy.outputs.version }} + buildOrNot: ${{ steps.buildOrNot.outputs.buildOrNot }} steps: - name: Install jq run: | sudo apt-get update sudo apt-get install jq -y - # Your other steps here - runs-on: ubuntu-latest - outputs: - iventoy: ${{ steps.iventoy.outputs.version }} - buildOrNot: ${{ steps.buildOrNot.outputs.buildOrNot }} - steps: + - name: get latest versions id: iventoy run: | version=$(curl -s https://api.github.com/repos/ventoy/PXE/releases/latest | grep "tag_name" | cut -d'"' -f4) echo "version=${version#'v'}" >> $GITEA_OUTPUT + - name: Check labels of the latest image on Docker Hub id: buildOrNot run: |