mirror of
https://github.com/hectorm/docker-qemu-reactos
synced 2025-01-09 10:36:37 +00:00
Use environment variable instead of context
This commit is contained in:
parent
407a6d48a8
commit
bf8bcd369c
4
.github/workflows/rebuild-latest-release.yml
vendored
4
.github/workflows/rebuild-latest-release.yml
vendored
@ -16,14 +16,14 @@ jobs:
|
|||||||
- name: 'REST API call'
|
- name: 'REST API call'
|
||||||
run: |
|
run: |
|
||||||
RELEASE_TAG="$(curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
RELEASE_TAG="$(curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
||||||
--url 'https://api.github.com/repos/${{ github.repository }}/releases/latest' \
|
--url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/releases/latest" \
|
||||||
--header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \
|
--header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \
|
||||||
--header 'Accept: application/vnd.github.v3+json' \
|
--header 'Accept: application/vnd.github.v3+json' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
| jq -rc '.tag_name')"
|
| jq -rc '.tag_name')"
|
||||||
if [ -n "${RELEASE_TAG-}" ] && [ "${RELEASE_TAG:?}" != 'null' ]; then
|
if [ -n "${RELEASE_TAG-}" ] && [ "${RELEASE_TAG:?}" != 'null' ]; then
|
||||||
curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
curl -fsS --proto '=https' --tlsv1.3 --globoff \
|
||||||
--url 'https://api.github.com/repos/${{ github.repository }}/actions/workflows/main.yml/dispatches' \
|
--url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/actions/workflows/main.yml/dispatches" \
|
||||||
--header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \
|
--header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \
|
||||||
--header 'Accept: application/vnd.github.v3+json' \
|
--header 'Accept: application/vnd.github.v3+json' \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
|
Loading…
Reference in New Issue
Block a user