Skip to content

Commit

Permalink
Merge pull request #12 from ENIB-Community/fix-somes
Browse files Browse the repository at this point in the history
remove unnecessary spaces and support long: false
  • Loading branch information
slashformotion authored Nov 11, 2023
2 parents a1ee80e + 8dd1790 commit 077af30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/post-result-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Comment Artifact URL on PR

on:
workflow_run:
types:
- "completed"
# types:
# - "completed"
workflows:
- "Build example"

Expand All @@ -15,7 +15,6 @@ jobs:
permissions:
pull-requests: write
steps:

- name: Get Artifact URL & PR Info
env:
GH_TOKEN: ${{ secrets.TOKEN }}
Expand Down Expand Up @@ -56,23 +55,19 @@ jobs:
HEAD_SHA: ${{ env.HEAD_SHA }}
uses: peter-evans/create-or-update-comment@v3
with:
edit-mode: replace
issue-number: ${{ env.PR_NUMBER }}
token: ${{ secrets.TOKEN }}
body: |
## Build Preview
[![badge]]($JOB_PATH)
You can find files attached to the below linked Workflow Run URL (Logs).
Please note that files only stay for around 90 days!
| Name | Link
| Name | Link |
--------------------------------------------------------------------
| Commit | ${{ env.HEAD_SHA }}
| Logs | ${{ env.JOB_PATH }}
| Exemple build with ${{ env.PR_NUMBER }} | ${{ env. ARTIFACT_URL }}
| Commit | ${{ env.HEAD_SHA }} |
| Workflow Run (click here to get PDF link) | ${{ env.JOB_PATH }} |
[badge]: https://img.shields.io/badge/Build-Success!-3fb950?logo=github&style=for-the-badge
6 changes: 3 additions & 3 deletions glossarium.typ
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ SOFTWARE.*/
let is_first = gloss == ();
let entlong = entry.at("long", default: "")
let textLink = if display !=none {
[ #display]
} else if (is_first or long == true) and entlong != [] and entlong != "" {
[ #entry.short#suffix (#emph(entlong))]
[#display]
} else if (is_first or long == true) and entlong != [] and entlong != "" and long != false {
[#entry.short#suffix (#emph(entlong))]
} else {
[#entry.short#suffix]
}
Expand Down

0 comments on commit 077af30

Please sign in to comment.