Skip to content

Commit 9d32018

Browse files
authored
fix pipeline stage that generates a link to PR docs (#3)
1 parent 5603214 commit 9d32018

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/docs_pr_upload.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ jobs:
2525
PR_NBR=$(cat pr_number.txt)
2626
curl --data-binary @site.tar.gz -H "Authorization: Bearer ${{ secrets.UPLOAD_TOKEN }}" https://docs.tds.cscs.ch/upload?path=$PR_NBR
2727
- name: Post comment with preview URL
28+
shell: bash
2829
run: |
30+
PR_NBR=$(cat pr_number.txt)
2931
curl -L -X POST \
3032
-H "Accept: application/vnd.github+json" \
3133
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
32-
"https://api.github.com/repos/eth-cscs/cscs-docs/issues/${{ github.event.pull_request.number }}/comments" \
34+
"https://api.github.com/repos/eth-cscs/cscs-docs/issues/${PR_NBR}/comments" \
3335
-d '{
34-
"body": "preview available: https://docs.tds.cscs.ch/${{ github.event.pull_request.number }}"
36+
"body": "preview available: https://docs.tds.cscs.ch/${PR_NBR}"
3537
}'

docs/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ Welcome to the techincal documentation for Alps.
4949

5050
[:octicons-arrow-right-24: Applying for an Alps project](https://www.cscs.ch/user-lab/applying-for-accounts)
5151

52-
53-
5452
</div>
5553

5654
## Get in Touch

0 commit comments

Comments
 (0)