From bf8bcd369c4889b2f6147f58c97b7ff4e2b5f2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= Date: Thu, 28 Apr 2022 21:32:29 +0200 Subject: [PATCH] Use environment variable instead of context --- .github/workflows/rebuild-latest-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rebuild-latest-release.yml b/.github/workflows/rebuild-latest-release.yml index 8147cac..d2d2141 100644 --- a/.github/workflows/rebuild-latest-release.yml +++ b/.github/workflows/rebuild-latest-release.yml @@ -16,14 +16,14 @@ jobs: - name: 'REST API call' run: | 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 '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' \ + --url "https://api.github.com/repos/${GITHUB_REPOSITORY:?}/actions/workflows/main.yml/dispatches" \ --header 'Authorization: Bearer ${{ secrets.PERSONAL_GITHUB_TOKEN }}' \ --header 'Accept: application/vnd.github.v3+json' \ --header 'Content-Type: application/json' \