mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
ci: wait for tagged IPA builds
This commit is contained in:
parent
c7e08e64fd
commit
30a147aaaf
1 changed files with 26 additions and 4 deletions
30
.github/workflows/updatesource.yml
vendored
30
.github/workflows/updatesource.yml
vendored
|
|
@ -1,21 +1,43 @@
|
||||||
name: Update StikDebug Source
|
name: Update StikDebug Source
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags: ["[0-9]*"]
|
||||||
workflow_dispatch:
|
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-source:
|
update-source:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Wait for IPA build
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
endpoint="$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/actions/workflows/build_ipa.yml/runs?event=push&branch=$GITHUB_REF_NAME&head_sha=$GITHUB_SHA"
|
||||||
|
for _ in {1..120}; do
|
||||||
|
run=$(curl --fail --silent --show-error \
|
||||||
|
-H "Authorization: Bearer $GH_TOKEN" \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
"$endpoint" | jq '.workflow_runs[0] // empty')
|
||||||
|
status=$(jq -r '.status // empty' <<< "$run")
|
||||||
|
conclusion=$(jq -r '.conclusion // empty' <<< "$run")
|
||||||
|
if [ "$status" = "completed" ]; then
|
||||||
|
test "$conclusion" = "success"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep 30
|
||||||
|
done
|
||||||
|
echo "Timed out waiting for Build Debug IPA."
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Checkout Website-Stuff
|
- name: Checkout Website-Stuff
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: StephenDev0/Website-Stuff
|
repository: StephenDev0/Website-Stuff
|
||||||
ref: main
|
ref: main
|
||||||
path: Website-Stuff
|
path: Website-Stuff
|
||||||
# A repository-scoped GITHUB_TOKEN cannot push to Website-Stuff.
|
|
||||||
token: ${{ secrets.WEBSITE_STUFF_TOKEN }}
|
token: ${{ secrets.WEBSITE_STUFF_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue