From 3e344bbea0fb1b8ed0cea1730414d66d0f78ccd9 Mon Sep 17 00:00:00 2001 From: IkiWiki Date: Sun, 25 Aug 2024 21:27:51 -0400 Subject: [PATCH] forgejo-ci: use server_url --- .forgejo/workflows/preview.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/preview.yaml b/.forgejo/workflows/preview.yaml index a8a88bf..235393c 100644 --- a/.forgejo/workflows/preview.yaml +++ b/.forgejo/workflows/preview.yaml @@ -11,9 +11,8 @@ jobs: - name: Environment setup run: | apk add git ikiwiki po4a perl-yaml-tiny tree nodejs jq coreutils curl - echo "GITHUB_PR_NAME=$(curl -s ${{ github.api_url }}/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':')" >> $GITHUB_ENV + echo "GITHUB_PR_NAME=$(curl -s ${{ github.server_url }}/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':')" >> $GITHUB_ENV - echo "curl -s ${{ github.api_url }}/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':'" - name: Repo pull uses: actions/checkout@v4 with: