mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:03 -04:00 
			
		
		
		
	testing auto altstore update
This commit is contained in:
		
							
								
								
									
										11
									
								
								.github/workflows/buildapp.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/buildapp.yml
									
									
									
									
										vendored
									
									
								
							| @@ -163,6 +163,11 @@ jobs: | |||||||
|           draft: ${{ env.DRAFT }} |           draft: ${{ env.DRAFT }} | ||||||
|           body_path: ${{ github.workspace }}/release_notes.md |           body_path: ${{ github.workspace }}/release_notes.md | ||||||
|  |  | ||||||
|  |       - name: Update Altstore Source with latest release | ||||||
|  |         run: | | ||||||
|       |           curl --location --request POST 'https://api.github.com/repos/Balackburn/YTLitePlusAltstore/dispatches' \ | ||||||
|  |           --header 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \ | ||||||
|  |           --header 'Content-Type: application/json' \ | ||||||
|  |           --data-raw '{ | ||||||
|  |             "event_type": "update-altstore-source-trigger" | ||||||
|  |           }' | ||||||
							
								
								
									
										52
									
								
								.github/workflows/update_source.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										52
									
								
								.github/workflows/update_source.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,52 +1,18 @@ | |||||||
| name: Update apps.json everyday | name: test | ||||||
|  |  | ||||||
| on: | on: | ||||||
|   schedule: |  | ||||||
|     - cron: '0 0 * * *' |  | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
|   repository_dispatch: |  | ||||||
|     types: [update-altstore-source-trigger] |  | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   update_json: |   update_altstore_source: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |  | ||||||
|     steps: |     steps: | ||||||
|     - name: Delay for repository_dispatch event |     - name: Update Altstore Source with latest release | ||||||
|       if: github.event_name == 'repository_dispatch' |  | ||||||
|       run: | |       run: | | ||||||
|         echo "Waiting for 8 minutes..." |         curl --location --request POST 'https://api.github.com/repos/Balackburn/YTLitePlusAltstore/dispatches' \ | ||||||
|         sleep 480 # 8 minutes x 60 seconds |         --header 'Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}' \ | ||||||
|          |         --header 'Content-Type: application/json' \ | ||||||
|     - name: Check out repository |         --data-raw '{ | ||||||
|       uses: actions/checkout@v2 |           "event_type": "update-altstore-source-trigger" | ||||||
|       with: |         }' | ||||||
|         ref: gh-pages |  | ||||||
|  |  | ||||||
|     - name: Set up Python |  | ||||||
|       uses: actions/setup-python@v2 |  | ||||||
|       with: |  | ||||||
|         python-version: 3.x |  | ||||||
|  |  | ||||||
|     - name: Install dependencies |  | ||||||
|       run: | |  | ||||||
|         python -m pip install --upgrade pip |  | ||||||
|         pip install requests |  | ||||||
|  |  | ||||||
|     - name: Run script |  | ||||||
|       run: | |  | ||||||
|         python Altstore/scripts/update_json.py |  | ||||||
|  |  | ||||||
|     - name: Check for changes |  | ||||||
|       id: check_changes |  | ||||||
|       run: | |  | ||||||
|         git diff --exit-code || echo "::set-output name=has_changes::true" |  | ||||||
|          |  | ||||||
|     - name: Commit and push changes |  | ||||||
|       if: steps.check_changes.outputs.has_changes == 'true' |  | ||||||
|       run: | |  | ||||||
|         git config --global user.email "actions@github.com" |  | ||||||
|         git config --global user.name "GitHub Actions" |  | ||||||
|         git add . |  | ||||||
|         git commit -m "Update JSON file with latest release" |  | ||||||
|         git push |  | ||||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn