From 1b8681d0e414c4899b00276c1351824ac8ba0673 Mon Sep 17 00:00:00 2001 From: CSK <73425927+cr2007@users.noreply.github.com> Date: Sat, 3 Aug 2024 10:50:31 +0000 Subject: [PATCH] Adds ntfy.sh notification for successful package publication in the workflow --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3928450..f1ad081 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,3 +25,14 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: Chandrashekhar_Resume.pdf + - name: Notify if package was published successfully + if: success() + env: + TAG_NAME: ${{ github.ref_name }} + run: | + curl \ + -H $"Title: CV ${{ github.ref_name }} published successfully" \ + -H "X-Tags: CV, version-update, updated-link" \ + -H "Content-Type: text/plain" \ + -d $"CV ${{ github.ref_name }} published successfully.\nYou can find the updated CV at https://github.com/cr2007/CV/releases/latest/download/Chandrashekhar_Resume.pdf\nStatus: ${{job.status}}" \ + ${{ vars.NTFY_GACTIONS_URL }}