From 53af33e05e456078e421e94a1105f6ffcfcd6cad Mon Sep 17 00:00:00 2001 From: bcumming Date: Mon, 10 Feb 2025 13:52:17 +0100 Subject: [PATCH 1/2] clean up some whitespace in index.md --- docs/index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 37c42209..1f67726f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -49,8 +49,6 @@ Welcome to the techincal documentation for Alps. [:octicons-arrow-right-24: Applying for an Alps project](https://www.cscs.ch/user-lab/applying-for-accounts) - - ## Get in Touch From 0eeef226b097f4b37d6b9039b20918dff38d6b7a Mon Sep 17 00:00:00 2001 From: bcumming Date: Mon, 10 Feb 2025 14:00:32 +0100 Subject: [PATCH 2/2] use the correct PR number when generating message --- .github/workflows/docs_pr_upload.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs_pr_upload.yaml b/.github/workflows/docs_pr_upload.yaml index e59c40a1..8ad3a0e3 100644 --- a/.github/workflows/docs_pr_upload.yaml +++ b/.github/workflows/docs_pr_upload.yaml @@ -25,11 +25,13 @@ jobs: PR_NBR=$(cat pr_number.txt) curl --data-binary @site.tar.gz -H "Authorization: Bearer ${{ secrets.UPLOAD_TOKEN }}" https://docs.tds.cscs.ch/upload?path=$PR_NBR - name: Post comment with preview URL + shell: bash run: | + PR_NBR=$(cat pr_number.txt) curl -L -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/eth-cscs/cscs-docs/issues/${{ github.event.pull_request.number }}/comments" \ + "https://api.github.com/repos/eth-cscs/cscs-docs/issues/${PR_NBR}/comments" \ -d '{ - "body": "preview available: https://docs.tds.cscs.ch/${{ github.event.pull_request.number }}" + "body": "preview available: https://docs.tds.cscs.ch/${PR_NBR}" }'