From eda30d5de5dc8f427f414a3c4f69d10826179ea4 Mon Sep 17 00:00:00 2001 From: IkiWiki Date: Sun, 25 Aug 2024 21:52:22 -0400 Subject: [PATCH] forgejo-ci: public not in subdir --- .forgejo/workflows/cleanup.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/cleanup.yaml b/.forgejo/workflows/cleanup.yaml index 1b65457..f983e87 100644 --- a/.forgejo/workflows/cleanup.yaml +++ b/.forgejo/workflows/cleanup.yaml @@ -10,19 +10,17 @@ jobs: steps: - name: Environment setup run: | - apk add git nodejs jq coreutils curl + apk add git nodejs jq coreutils curl tree echo "GITHUB_PR_NAME=$(curl -Ls ${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.ref_name }} | jq .title | tr ' ' '-' | tr -d ':' | tr -d '"' | tr '[:upper:]' '[:lower:]' )" >> $GITHUB_ENV - name: Public repo pull uses: actions/checkout@v4 with: fetch-depth: 0 - ref: public - path: public token: ${{ secrets.PAGES_TOKEN }} - name: Render website run: | rm -rf previews/$GITHUB_PR_NAME || true - cd public/previews + cd previews tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html - name: Website upload run: |