From bf704f0926840b636e9bdb07e56a0d0075f3282f Mon Sep 17 00:00:00 2001 From: F Bojarski Date: Thu, 13 Nov 2025 11:08:13 +0530 Subject: [PATCH 1/3] feat: get slack notif in case of spec build failure Signed-off-by: F Bojarski --- .github/workflows/compile.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 699a7089..7d2e38b9 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,8 @@ jobs: archive-build-spec: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Install JetBrainsMono run: mkdir JetBrainsMono && cd JetBrainsMono @@ -16,17 +17,32 @@ jobs: && unzip JetBrainsMono-2.304.zip && sudo mv fonts/ttf/*.ttf /usr/share/fonts/ && cd - + - name: Install fontawesome run: sudo apt-get install fonts-font-awesome + - name: Install tectonic run: curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh + - name: Install lualatex # run: sudo apt-get install texlive-latex-base && sudo apt install texlive-luatex && sudo apt-get install texlive-latex-extra run: sudo apt-get update && sudo apt install texlive-full --fix-missing + - name: Compile Specification run: make ospec + - name: Upload the Specification uses: actions/upload-artifact@v4 with: name: specification.pdf path: spec/_all_spec.pdf + + - name: Failure Notification + if: github.ref == (failure() || cancelled()) + uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: webhook-trigger + payload: | + name: "SpecCompilation" + status: "${{ job.status }}" From 7aba9ceeec74aebbcaece2ef496070aed2948893 Mon Sep 17 00:00:00 2001 From: F Bojarski Date: Thu, 13 Nov 2025 11:09:49 +0530 Subject: [PATCH 2/3] failure notif before upload Signed-off-by: F Bojarski --- .github/workflows/compile.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 7d2e38b9..f2e8af72 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -31,12 +31,6 @@ jobs: - name: Compile Specification run: make ospec - - name: Upload the Specification - uses: actions/upload-artifact@v4 - with: - name: specification.pdf - path: spec/_all_spec.pdf - - name: Failure Notification if: github.ref == (failure() || cancelled()) uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 @@ -46,3 +40,11 @@ jobs: payload: | name: "SpecCompilation" status: "${{ job.status }}" + + - name: Upload the Specification + uses: actions/upload-artifact@v4 + with: + name: specification.pdf + path: spec/_all_spec.pdf + + From 4766976ac41eedcc2fc89f56735b12093f12aae4 Mon Sep 17 00:00:00 2001 From: F Bojarski Date: Thu, 13 Nov 2025 11:13:40 +0530 Subject: [PATCH 3/3] fix: cursor comment Signed-off-by: F Bojarski --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index f2e8af72..5575ace4 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -32,7 +32,7 @@ jobs: run: make ospec - name: Failure Notification - if: github.ref == (failure() || cancelled()) + if: failure() || cancelled() uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL }}