Skip to content

Commit

Permalink
add permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 20, 2024
1 parent 5ed66e9 commit a1f66fc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ jobs:
with:
files: |
**.ipynb
- name: Build permalinks
id: build-permalinks
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |-
permalinks=""
for fullfile in ${ALL_CHANGED_FILES}; do
commit=$(git rev-list -1 HEAD "$fullfile")
permalinks+="- https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/$commit/$fullfile"
done
echo "permalinks=$permalinks" >>"$GITHUB_OUTPUT"
- name: Comment PR with permalinks
uses: thollander/actions-comment-pull-request@v2
with:
message: |
**Permalinks:**
${{ steps.build-permalinks.outputs.permalinks }}
comment_tag: permalinks
- name: Checkout book repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit a1f66fc

Please sign in to comment.