Update .gitea/workflows/build-image.yml
This commit is contained in:
		@@ -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: |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user