mirror of
				https://github.com/linuxserver/docker-webtop.git
				synced 2025-10-31 11:24:20 +01:00 
			
		
		
		
	Bot Updating Templated Files
This commit is contained in:
		
							parent
							
								
									1cb2e87360
								
							
						
					
					
						commit
						5f556484d8
					
				
							
								
								
									
										42
									
								
								.github/workflows/package_trigger.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/package_trigger.yml
									
									
									
									
										vendored
									
									
								
							| @ -1,42 +0,0 @@ | ||||
| name: Package Trigger Main | ||||
| 
 | ||||
| on: | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   package-trigger-fedora-mate: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4.1.1 | ||||
| 
 | ||||
|       - name: Package Trigger | ||||
|         if: github.ref == 'refs/heads/fedora-mate' | ||||
|         run: | | ||||
|           printf "# Package trigger for docker-webtop\n\n" >> $GITHUB_STEP_SUMMARY | ||||
|           if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_WEBTOP_FEDORA_MATE }}" ]; then | ||||
|             echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY | ||||
|             echo "> Github secret \`PAUSE_PACKAGE_TRIGGER_WEBTOP_FEDORA_MATE\` is set; skipping trigger." >> $GITHUB_STEP_SUMMARY | ||||
|             exit 0 | ||||
|           fi | ||||
|           if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-webtop/job/fedora-mate/lastBuild/api/json | jq -r '.building') == "true" ]; then | ||||
|             echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY | ||||
|             echo "> There already seems to be an active build on Jenkins; skipping package trigger" >> $GITHUB_STEP_SUMMARY | ||||
|             exit 0 | ||||
|           fi | ||||
|           echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY | ||||
|           echo "> Package trigger running off of fedora-mate branch. To disable, set a Github secret named \`PAUSE_PACKAGE_TRIGGER_WEBTOP_FEDORA_MATE\`" >> $GITHUB_STEP_SUMMARY | ||||
|           response=$(curl -iX POST \ | ||||
|             https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-webtop/job/fedora-mate/buildWithParameters?PACKAGE_CHECK=true \ | ||||
|             --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") | ||||
|           echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY | ||||
|           echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY | ||||
|           sleep 10 | ||||
|           buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') | ||||
|           buildurl="${buildurl%$'\r'}" | ||||
|           echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY | ||||
|           echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY | ||||
|           curl -iX POST \ | ||||
|             "${buildurl}submitDescription" \ | ||||
|             --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \ | ||||
|             --data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ | ||||
|             --data-urlencode "Submit=Submit" | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user