mirror of
				https://github.com/kewlfft/ansible-aur.git
				synced 2025-11-04 18:12:30 +03:00 
			
		
		
		
	Update galaxy.yml
add log
This commit is contained in:
		
							
								
								
									
										19
									
								
								.github/workflows/galaxy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/galaxy.yml
									
									
									
									
										vendored
									
									
								
							@@ -19,7 +19,6 @@ jobs:
 | 
				
			|||||||
          path: collections/ansible_collections/kewlfft/aur
 | 
					          path: collections/ansible_collections/kewlfft/aur
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Verify version in galaxy.yml matches release tag
 | 
					      - name: Verify version in galaxy.yml matches release tag
 | 
				
			||||||
        id: version
 | 
					 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          tag_version="${GITHUB_REF##*/}"   # strip refs/tags/
 | 
					          tag_version="${GITHUB_REF##*/}"   # strip refs/tags/
 | 
				
			||||||
          file_version=$(awk '/^version:/ {print $2}' galaxy.yml)
 | 
					          file_version=$(awk '/^version:/ {print $2}' galaxy.yml)
 | 
				
			||||||
@@ -29,22 +28,26 @@ jobs:
 | 
				
			|||||||
            exit 1
 | 
					            exit 1
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          echo "version=$tag_version" >> "$GITHUB_OUTPUT"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      - name: Build collection
 | 
					      - name: Build collection
 | 
				
			||||||
        id: build
 | 
					 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          path=$(ansible-galaxy collection build | awk '/Created collection/ {print $NF}')
 | 
					          path=$(ansible-galaxy collection build | awk '/Created collection/ {print $NF}')
 | 
				
			||||||
          echo "tarball=$path" >> "$GITHUB_OUTPUT"
 | 
					          echo "TARBALL=$path" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					          echo "📦 Built collection at $path"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Upload built collection artifact
 | 
					      - name: Upload built collection artifact
 | 
				
			||||||
        uses: actions/upload-artifact@v4
 | 
					        uses: actions/upload-artifact@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: ansible-collection-tarball
 | 
					          name: ansible-collection-tarball
 | 
				
			||||||
          path: ${{ steps.build.outputs.tarball }}
 | 
					          path: ${{ env.TARBALL }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Debug tarball before publish
 | 
				
			||||||
 | 
					        run: |
 | 
				
			||||||
 | 
					          echo "🔎 Checking tarball path..."
 | 
				
			||||||
 | 
					          echo "TARBALL=$TARBALL"
 | 
				
			||||||
 | 
					          ls -l "$(dirname "$TARBALL")"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Publish collection
 | 
					      - name: Publish collection
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          echo "📦 Publishing ${{ steps.build.outputs.tarball }} ..."
 | 
					          echo "📤 Publishing $TARBALL ..."
 | 
				
			||||||
          ansible-galaxy collection publish "${{ steps.build.outputs.tarball }}" \
 | 
					          ansible-galaxy collection publish "$TARBALL" \
 | 
				
			||||||
            --api-key "${{ secrets.ANSIBLE_GALAXY_API_KEY }}"
 | 
					            --api-key "${{ secrets.ANSIBLE_GALAXY_API_KEY }}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user