mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-05-12 01:00:40 +00:00
Merge pull request #615 from DelofJ/main
Fix AltStore repo auto update with Catbox
This commit is contained in:
commit
c84f4d8a4b
1 changed files with 11 additions and 6 deletions
17
.github/workflows/buildapp.yml
vendored
17
.github/workflows/buildapp.yml
vendored
|
|
@ -33,12 +33,12 @@ on:
|
||||||
type: string
|
type: string
|
||||||
upload_artifact:
|
upload_artifact:
|
||||||
description: "Upload iPA as artifact (Public)"
|
description: "Upload iPA as artifact (Public)"
|
||||||
default: true
|
default: false
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
catbox_upload:
|
catbox_upload:
|
||||||
description: "Upload iPA to Catbox.moe (URL)"
|
description: "Upload iPA to Catbox.moe (URL)"
|
||||||
default: false
|
default: true
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
create_release:
|
create_release:
|
||||||
|
|
@ -195,7 +195,7 @@ jobs:
|
||||||
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
path: ${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload Artifact to Catbox
|
- name: Upload Artifact to Catbox and update AltStore repo
|
||||||
if: ${{ inputs.catbox_upload }}
|
if: ${{ inputs.catbox_upload }}
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -F "reqtype=fileupload" -F "fileToUpload=@${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}" https://catbox.moe/user/api.php)
|
RESPONSE=$(curl -F "reqtype=fileupload" -F "fileToUpload=@${{ github.workspace }}/main/packages/${{ steps.build_package.outputs.package }}" https://catbox.moe/user/api.php)
|
||||||
|
|
@ -227,13 +227,18 @@ jobs:
|
||||||
body_path: ${{ github.workspace }}/release_notes.md
|
body_path: ${{ github.workspace }}/release_notes.md
|
||||||
|
|
||||||
- name: Update Altstore Source with latest release
|
- name: Update Altstore Source with latest release
|
||||||
if: ${{ inputs.create_release }}
|
if: ${{ inputs.catbox_upload }}
|
||||||
run: |
|
run: |
|
||||||
curl --location --request POST 'https://api.github.com/repos/Balackburn/YTLitePlusAltstore/dispatches' \
|
curl --location --request POST 'https://api.github.com/repos/Balackburn/YTLitePlusAltstore/actions/workflows/update_source.yml/dispatches' \
|
||||||
--header 'Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}' \
|
--header 'Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"event_type": "update-altstore-source-trigger"
|
"ref": "main",
|
||||||
|
"inputs": {
|
||||||
|
"yt_lite_plus_url": "${{ env.CATBOX_URL }}",
|
||||||
|
"yt_lite_plus_version": "${{ env.YTLITE_VERSION }}",
|
||||||
|
"yt_version": "${{ env.YT_VERSION }}"
|
||||||
|
}
|
||||||
}'
|
}'
|
||||||
|
|
||||||
- name: Job Summary
|
- name: Job Summary
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue