Skip to content

Commit

Permalink
fix permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jun 20, 2024
1 parent 14d0292 commit 6598ee2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |-
permalinks=""
permalinks="<ul>"
for fullfile in ${ALL_CHANGED_FILES}; do
commit=$(git rev-list -1 HEAD "$fullfile")
permalinks+="\n- https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/$commit/$fullfile"
permalinks+="<li>https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/$commit/$fullfile</li>"
done
echo -e "permalinks=$permalinks" >>"$GITHUB_OUTPUT"
permalinks+="</ul>"
echo "permalinks=$permalinks" >>"$GITHUB_OUTPUT"
- name: Comment PR with permalinks
uses: thollander/actions-comment-pull-request@v2
with:
Expand Down

0 comments on commit 6598ee2

Please sign in to comment.