Skip to content

Commit

Permalink
Adds ntfy.sh notification for successful package publication in the w…
Browse files Browse the repository at this point in the history
…orkflow
  • Loading branch information
cr2007 committed Aug 3, 2024
1 parent cec36a6 commit 1b8681d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1b8681d

Please sign in to comment.