mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-08 01:55:30 +00:00
Use "hectorm/ghaction-trigger-workflow" action
This commit is contained in:
parent
4623b1e3c9
commit
efd183861a
25
.github/workflows/rebuild-latest-release.yml
vendored
25
.github/workflows/rebuild-latest-release.yml
vendored
@ -13,25 +13,10 @@ jobs:
|
|||||||
name: "Trigger rebuild"
|
name: "Trigger rebuild"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
permissions:
|
permissions:
|
||||||
|
actions: "write"
|
||||||
contents: "read"
|
contents: "read"
|
||||||
steps:
|
steps:
|
||||||
- name: "REST API call"
|
- name: "Trigger rebuild"
|
||||||
env:
|
uses: "hectorm/ghaction-trigger-workflow@04c79e7a4e0c0b94bbcff3829f38359e34f1ea9e"
|
||||||
GITHUB_PAT: "${{ secrets.PERSONAL_GITHUB_TOKEN }}"
|
with:
|
||||||
run: |
|
workflow-id: "main.yml"
|
||||||
RELEASE_TAG="$(curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
|
||||||
--url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/releases/latest" \
|
|
||||||
--header "Authorization: Bearer ${GITHUB_PAT:?}" \
|
|
||||||
--header 'Accept: application/vnd.github.v3+json' \
|
|
||||||
--header 'Content-Type: application/json' \
|
|
||||||
| jq -rc '.tag_name')"
|
|
||||||
if [ -n "${RELEASE_TAG-}" ] && [ "${RELEASE_TAG:?}" != 'null' ]; then
|
|
||||||
curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
|
||||||
--url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/actions/workflows/main.yml/dispatches" \
|
|
||||||
--header "Authorization: Bearer ${GITHUB_PAT:?}" \
|
|
||||||
--header 'Accept: application/vnd.github.v3+json' \
|
|
||||||
--header 'Content-Type: application/json' \
|
|
||||||
--data "$(jq -rn --arg tag "${RELEASE_TAG:?}" '{"ref": $tag}')"
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user